-
-
Notifications
You must be signed in to change notification settings - Fork 189
Open
Description
Our application (a Java fat client), needs to authenticate against a kerberos protected API.
I tried using the WindowsSecurityContext to retrieve a token, which succeeds. I would like to know what the token is that is returned by the WindowsSecurityContext.
On an AD joined windows machine this will return a byte[]. Is this a Kerberos TGT (Ticket Granting Token) ?. I assume so, since it is quite a short token. All examples I can found of a kerberos service token are much larger.
Are there any examples that show how to get a kerberos service token to connect with a Kerberos protected service?
The following is an example on how we get the token:
String securityPackage = "Kerberos";
IWindowsSecurityContext ctx = WindowsSecurityContextImpl.getCurrent(securityPackage, WindowsAccountImpl.getCurrentUsername());
byte[] token = ctx.getToken();Metadata
Metadata
Assignees
Labels
No labels