Class TokenCache
java.lang.Object
org.apache.kerby.kerberos.kerb.client.jaas.TokenCache
This class provides APIs for converting token cache file with token string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileGet the default token cache.static StringObtain token string from token cache file.static voidwriteToken(String token, String tokenCacheFile) Write the token string to token cache file.
-
Constructor Details
-
TokenCache
public TokenCache()
-
-
Method Details
-
readToken
Obtain token string from token cache file.- Parameters:
tokenCacheFile- The file stored token- Returns:
- Token string
-
writeToken
Write the token string to token cache file.- Parameters:
token- The token string- Throws:
IOException
-
getDefaultTokenCache
Get the default token cache.- Returns:
- The default token cache
-