public interface DelegationTokenStore extends org.apache.hadoop.conf.Configurable, Closeable
DelegationTokenStore.TokenStoreException
.Modifier and Type | Interface and Description |
---|---|
static class |
DelegationTokenStore.TokenStoreException
Exception for internal token store errors that typically cannot be handled by the caller.
|
Modifier and Type | Method and Description |
---|---|
int |
addMasterKey(String s)
Add new master key.
|
boolean |
addToken(DelegationTokenIdentifier tokenIdentifier,
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation token)
Add token.
|
List<DelegationTokenIdentifier> |
getAllDelegationTokenIdentifiers()
List of all token identifiers in the store.
|
String[] |
getMasterKeys()
Return all master keys.
|
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation |
getToken(DelegationTokenIdentifier tokenIdentifier)
Get token.
|
void |
init(Object hmsHandler,
HadoopThriftAuthBridge.Server.ServerMode smode) |
boolean |
removeMasterKey(int keySeq)
Remove key for given id.
|
boolean |
removeToken(DelegationTokenIdentifier tokenIdentifier)
Remove token.
|
void |
updateMasterKey(int keySeq,
String s)
Update master key (for expiration and setting store assigned sequence within key)
|
int addMasterKey(String s) throws DelegationTokenStore.TokenStoreException
s
- DelegationTokenStore.TokenStoreException
void updateMasterKey(int keySeq, String s) throws DelegationTokenStore.TokenStoreException
keySeq
- s
- DelegationTokenStore.TokenStoreException
boolean removeMasterKey(int keySeq)
keySeq
- String[] getMasterKeys() throws DelegationTokenStore.TokenStoreException
DelegationTokenStore.TokenStoreException
boolean addToken(DelegationTokenIdentifier tokenIdentifier, org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation token) throws DelegationTokenStore.TokenStoreException
tokenIdentifier
- token
- DelegationTokenStore.TokenStoreException
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation getToken(DelegationTokenIdentifier tokenIdentifier) throws DelegationTokenStore.TokenStoreException
tokenIdentifier
- DelegationTokenStore.TokenStoreException
boolean removeToken(DelegationTokenIdentifier tokenIdentifier) throws DelegationTokenStore.TokenStoreException
tokenIdentifier
- DelegationTokenStore.TokenStoreException
List<DelegationTokenIdentifier> getAllDelegationTokenIdentifiers() throws DelegationTokenStore.TokenStoreException
DelegationTokenStore.TokenStoreException
void init(Object hmsHandler, HadoopThriftAuthBridge.Server.ServerMode smode)
hmsHandler
- ObjectStore used by DBTokenStoresmode
- Indicate whether this is a metastore or hiveserver2 token storeCopyright © 2017 The Apache Software Foundation. All rights reserved.