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_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 DelegationTokenSecretManager getSecretManager()
public void startDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf, Object hms) throws IOException
IOException
public void startDelegationTokenSecretManager(org.apache.hadoop.conf.Configuration conf, Object hms, HadoopThriftAuthBridge.Server.ServerMode smode) throws IOException
IOException
public String getDelegationToken(String owner, String renewer, String remoteAddr) throws IOException, InterruptedException
IOException
InterruptedException
public String getDelegationTokenWithService(String owner, String renewer, String service, String remoteAddr) throws IOException, InterruptedException
IOException
InterruptedException
public long renewDelegationToken(String tokenStrForm) throws IOException
IOException
public String getUserFromToken(String tokenStr) throws IOException
IOException
public void cancelDelegationToken(String tokenStrForm) throws IOException
IOException
public String verifyDelegationToken(String tokenStrForm) throws IOException
tokenStrForm
- IOException
public static String addServiceToToken(String tokenStr, String tokenService) throws IOException
tokenStr
- tokenService
- IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.