public class TokenCache extends Object
| Constructor and Description |
|---|
TokenCache() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getDefaultTokenCache()
Get the default token cache.
|
static String |
readToken(String tokenCacheFile)
Obtain token string from token cache file.
|
static void |
writeToken(String token,
String tokenCacheFile)
Write the token string to token cache file.
|
public static String readToken(String tokenCacheFile)
tokenCacheFile - The file stored tokenpublic static void writeToken(String token, String tokenCacheFile) throws IOException
token - The token stringIOExceptionpublic static File getDefaultTokenCache()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.