[37134] in Kerberos

home help back first fref pref prev next nref lref last post

how to retrieve ticket flags in JAVA

daemon@ATHENA.MIT.EDU (Jim Shi)
Mon Jun 29 18:21:07 2015

From: Jim Shi <hanmao_shi@apple.com>
Message-id: <A8EC7159-A05F-4672-8E6D-5CBDC62F81D1@apple.com>
MIME-version: 1.0 (Mac OS X Mail 8.2 \(2098\))
Date: Mon, 29 Jun 2015 15:20:35 -0700
To: kerberos@mit.edu
In-reply-to: <9FDA142C-DA73-45E6-AEA8-39D0B65391BD@optonline.net>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu


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


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post