Class TokenJaasKrbUtil

java.lang.Object
org.apache.kerby.kerberos.kerb.client.jaas.TokenJaasKrbUtil

public class TokenJaasKrbUtil extends Object
JAAS utilities for token login.
  • Constructor Details

    • TokenJaasKrbUtil

      public TokenJaasKrbUtil()
  • Method Details

    • loginUsingToken

      public static Subject loginUsingToken(String principal, File tokenCache, File armorCache, File ccache, File signKeyFile) throws LoginException
      Login using token cache.
      Parameters:
      principal - The client principal name
      tokenCache - the token cache for login
      armorCache - the armor cache for fast preauth
      ccache - The file to store the tgt ticket
      Returns:
      the authenticated Subject
      Throws:
      LoginException - e
    • loginUsingToken

      public static Subject loginUsingToken(String principal, String tokenStr, File armorCache, File ccache, File signKeyFile) throws LoginException
      Login using token string.
      Parameters:
      principal - The client principal name
      tokenStr - the token string for login
      armorCache - the armor cache for fast preauth
      ccache - The file to store the tgt ticket
      Returns:
      the authenticated Subject
      Throws:
      LoginException - e