|
From: <ha...@us...> - 2008-09-08 23:32:08
|
Revision: 2146
http://cogkit.svn.sourceforge.net/cogkit/?rev=2146&view=rev
Author: hategan
Date: 2008-09-08 23:32:06 +0000 (Mon, 08 Sep 2008)
Log Message:
-----------
that didn't quite work
Modified Paths:
--------------
trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/service/channels/GSSChannel.java
Modified: trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/service/channels/GSSChannel.java
===================================================================
--- trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/service/channels/GSSChannel.java 2008-09-08 21:25:58 UTC (rev 2145)
+++ trunk/current/src/cog/modules/karajan/src/org/globus/cog/karajan/workflow/service/channels/GSSChannel.java 2008-09-08 23:32:06 UTC (rev 2146)
@@ -73,10 +73,13 @@
SelfAuthorization.getInstance() });
GSSCredential cred = this.getChannelContext().getCredential();
+ if (cred == null) {
+ cred = GSSService.initializeCredentials(true, null, null);
+ }
GSSManager manager = new GlobusGSSManagerImpl();
ExtendedGSSContext gssContext = (ExtendedGSSContext) manager.createContext(null,
- GSSConstants.MECH_OID, cred, GSSContext.INDEFINITE_LIFETIME);
+ GSSConstants.MECH_OID, cred, cred.getRemainingLifetime());
gssContext.requestAnonymity(false);
gssContext.requestCredDeleg(false);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|