Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

GSSAPI requestCredDeleg

843811Jul 22 2005 — edited Sep 7 2005
I'm writing an gss server/client application with mutual auth and credential delegate support but I can't get credential delegation to work. I base my code mainly on the SampleClient.java/SampleServer.java in the GSS tutorial and I get the mutual auth to work without any problems. I'm using jdk1.5.
Oid krb5Oid = new Oid("1.2.840.113554.1.2.2");
GSSManager manager = GSSManager.getInstance();
GSSName serverName = manager.createName(server, null);
GSSContext context = manager.createContext(serverName, krb5Oid, null,
		GSSContext.DEFAULT_LIFETIME);

context.requestMutualAuth(true);
context.requestCredDeleg(true);		
klist -a
Credentials cache: FILE:/tmp/krb5cc_D15505
Principal: wikm@SU.SE
Cache version: 4

Server: krbtgt/SU.SE@SU.SE
Ticket etype: des3-cbc-sha1, kvno 1
Auth time: Jul 22 12:14:39 2005
End time: Jul 22 22:14:39 2005
Renew till: Jul 29 12:14:39 2005
Ticket flags: forwardable, renewable, initial
Addresses:

I have also tryed with des-cbc-crc.

Do java suport CredDelegate yet?

/ Mikael Wikstrom
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2005
Added on Jul 22 2005
17 comments
945 views