public class MetastoreDelegationTokenManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DELEGATION_TOKEN_STORE_ZK_ACL |
static String |
DELEGATION_TOKEN_STORE_ZK_CONNECT_STR |
static String |
DELEGATION_TOKEN_STORE_ZK_CONNECT_STR_ALTERNATE |
static String |
DELEGATION_TOKEN_STORE_ZK_CONNECT_TIMEOUTMILLIS |
static String |
DELEGATION_TOKEN_STORE_ZK_KEYSTORE_LOCATION |
static String |
DELEGATION_TOKEN_STORE_ZK_KEYSTORE_PASSWORD |
static String |
DELEGATION_TOKEN_STORE_ZK_KEYSTORE_TYPE |
static String |
DELEGATION_TOKEN_STORE_ZK_SSL_ENABLE |
static String |
DELEGATION_TOKEN_STORE_ZK_TRUSTSTORE_LOCATION |
static String |
DELEGATION_TOKEN_STORE_ZK_TRUSTSTORE_PASSWORD |
static String |
DELEGATION_TOKEN_STORE_ZK_TRUSTSTORE_TYPE |
static String |
DELEGATION_TOKEN_STORE_ZK_ZNODE |
static String |
DELEGATION_TOKEN_STORE_ZK_ZNODE_DEFAULT |
protected DelegationTokenSecretManager |
secretManager |
| Constructor and Description |
|---|
MetastoreDelegationTokenManager() |
| Modifier and Type | Method and Description |
|---|---|
static String |
addServiceToToken(String tokenStr,
String tokenService)
Add a given service to delegation token string.
|
void |
cancelDelegationToken(String tokenStrForm) |
String |
getDelegationToken(String owner,
String renewer,
String remoteAddr) |
String |
getDelegationTokenWithService(String owner,
String renewer,
String service,
String remoteAddr) |
DelegationTokenSecretManager |
getSecretManager() |
String |
getUserFromToken(String tokenStr) |
long |
renewDelegationToken(String tokenStrForm) |
void |
startDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf,
Object hms) |
void |
startDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf,
Object hms,
HadoopThriftAuthBridge.Server.ServerMode smode) |
String |
verifyDelegationToken(String tokenStrForm)
Verify token string
|
public static final String DELEGATION_TOKEN_STORE_ZK_CONNECT_STR
protected DelegationTokenSecretManager secretManager
public static final String DELEGATION_TOKEN_STORE_ZK_CONNECT_STR_ALTERNATE
public static final String DELEGATION_TOKEN_STORE_ZK_CONNECT_TIMEOUTMILLIS
public static final String DELEGATION_TOKEN_STORE_ZK_ZNODE
public static final String DELEGATION_TOKEN_STORE_ZK_ACL
public static final String DELEGATION_TOKEN_STORE_ZK_ZNODE_DEFAULT
public static final String DELEGATION_TOKEN_STORE_ZK_SSL_ENABLE
public static final String DELEGATION_TOKEN_STORE_ZK_KEYSTORE_LOCATION
public static final String DELEGATION_TOKEN_STORE_ZK_KEYSTORE_PASSWORD
public static final String DELEGATION_TOKEN_STORE_ZK_KEYSTORE_TYPE
public static final String DELEGATION_TOKEN_STORE_ZK_TRUSTSTORE_LOCATION
public static final String DELEGATION_TOKEN_STORE_ZK_TRUSTSTORE_PASSWORD
public static final String DELEGATION_TOKEN_STORE_ZK_TRUSTSTORE_TYPE
public DelegationTokenSecretManager getSecretManager()
public void startDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf,
Object hms)
throws IOException
IOExceptionpublic void startDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf,
Object hms,
HadoopThriftAuthBridge.Server.ServerMode smode)
throws IOException
IOExceptionpublic String getDelegationToken(String owner, String renewer, String remoteAddr) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String getDelegationTokenWithService(String owner, String renewer, String service, String remoteAddr) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic long renewDelegationToken(String tokenStrForm) throws IOException
IOExceptionpublic String getUserFromToken(String tokenStr) throws IOException
IOExceptionpublic void cancelDelegationToken(String tokenStrForm) throws IOException
IOExceptionpublic String verifyDelegationToken(String tokenStrForm) throws IOException
tokenStrForm - IOExceptionpublic static String addServiceToToken(String tokenStr, String tokenService) throws IOException
tokenStr - tokenService - IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.