Class TokenJaasKrbUtil
java.lang.Object
org.apache.kerby.kerberos.kerb.client.jaas.TokenJaasKrbUtil
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 nametokenCache- the token cache for loginarmorCache- the armor cache for fast preauthccache- 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 nametokenStr- the token string for loginarmorCache- the armor cache for fast preauthccache- The file to store the tgt ticket- Returns:
- the authenticated Subject
- Throws:
LoginException- e
-