Skip to content

IWindowsSecurityContext getToken Kerberos - question #2174

@ekkelenkamp

Description

@ekkelenkamp

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions