@InterfaceAudience.Private @InterfaceStability.Unstable public class TokenCache extends Object
| Constructor and Description |
|---|
TokenCache() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getSecretKey(org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.io.Text alias)
auxiliary method to get user's secret keys..
|
static org.apache.hadoop.security.token.Token<JobTokenIdentifier> |
getSessionToken(org.apache.hadoop.security.Credentials credentials) |
static void |
mergeBinaryTokens(org.apache.hadoop.security.Credentials creds,
org.apache.hadoop.conf.Configuration conf,
String tokenFilePath)
Merge tokens from a configured binary file into provided Credentials object
|
static void |
obtainTokensForFileSystems(org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.fs.Path[] ps,
org.apache.hadoop.conf.Configuration conf)
Convenience method to obtain delegation tokens from namenodes
corresponding to the paths passed.
|
static void |
setSessionToken(org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> t,
org.apache.hadoop.security.Credentials credentials)
store session specific token
|
public static byte[] getSecretKey(org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.io.Text alias)
alias - public static void obtainTokensForFileSystems(org.apache.hadoop.security.Credentials credentials,
org.apache.hadoop.fs.Path[] ps,
org.apache.hadoop.conf.Configuration conf)
throws IOException
credentials - ps - array of pathsconf - configurationIOException@InterfaceAudience.Private
public static void setSessionToken(org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> t,
org.apache.hadoop.security.Credentials credentials)
t - @InterfaceAudience.Private public static org.apache.hadoop.security.token.Token<JobTokenIdentifier> getSessionToken(org.apache.hadoop.security.Credentials credentials)
@InterfaceAudience.Private
public static void mergeBinaryTokens(org.apache.hadoop.security.Credentials creds,
org.apache.hadoop.conf.Configuration conf,
String tokenFilePath)
throws IOException
creds - Credentials object to add new tokens totokenFilePath - Location of tokens' binary fileIOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.