public class HiveDelegationTokenManager extends Object
Modifier and Type | Field and Description |
---|---|
static long |
DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT |
static String |
DELEGATION_KEY_UPDATE_INTERVAL_KEY |
static String |
DELEGATION_TOKEN_GC_INTERVAL |
static long |
DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT |
static String |
DELEGATION_TOKEN_MAX_LIFETIME_KEY |
static long |
DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT |
static String |
DELEGATION_TOKEN_RENEW_INTERVAL_KEY |
static String |
DELEGATION_TOKEN_STORE_CLS |
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 |
---|
HiveDelegationTokenManager() |
Modifier and Type | Method and Description |
---|---|
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,
HadoopThriftAuthBridge.Server.ServerMode smode) |
String |
verifyDelegationToken(String tokenStrForm)
Verify token string
|
public static final String DELEGATION_TOKEN_GC_INTERVAL
public static final String DELEGATION_KEY_UPDATE_INTERVAL_KEY
public static final long DELEGATION_KEY_UPDATE_INTERVAL_DEFAULT
public static final String DELEGATION_TOKEN_RENEW_INTERVAL_KEY
public static final long DELEGATION_TOKEN_RENEW_INTERVAL_DEFAULT
public static final String DELEGATION_TOKEN_MAX_LIFETIME_KEY
public static final long DELEGATION_TOKEN_MAX_LIFETIME_DEFAULT
public static final String DELEGATION_TOKEN_STORE_CLS
public static final String DELEGATION_TOKEN_STORE_ZK_CONNECT_STR
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
protected DelegationTokenSecretManager secretManager
public DelegationTokenSecretManager getSecretManager()
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
Copyright © 2016 The Apache Software Foundation. All rights reserved.