how to retrieve ticket flags in JAVA

Jim Shi hanmao_shi at apple.com
Mon Jun 29 18:20:35 EDT 2015


Hi, I am try to find if a particular  ticket flag in a kerberos ticket  is set in Java, I was suggested to use the following code:

boolean[] flags = (boolean[])((ExtendedGSSContext) context).inquireSecContext(
						InquireType.KRB5_GET_TKT_FLAGS);

Say I want to check if TKT_FLG_HW_AUTH is set, at what index should I check the boolean value?

Is there mapping from indexies of array to ticket flags?

Thanks

Jim




More information about the Kerberos mailing list