public class DelegationTokenSecretManager extends org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<DelegationTokenIdentifier>
| Constructor and Description |
|---|
DelegationTokenSecretManager(long delegationKeyUpdateInterval,
long delegationTokenMaxLifetime,
long delegationTokenRenewInterval,
long delegationTokenRemoverScanInterval)
Create a secret manager
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDelegationToken(String tokenStrForm) |
DelegationTokenIdentifier |
createIdentifier() |
String |
getDelegationToken(String ownerStr,
String renewer) |
protected DelegationTokenIdentifier |
getTokenIdentifier(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) |
String |
getUserFromToken(String tokenStr) |
long |
renewDelegationToken(String tokenStrForm) |
String |
verifyDelegationToken(String tokenStrForm)
Verify token string
|
addKey, addPersistedDelegationToken, cancelToken, checkToken, createPassword, createSecretKey, decodeTokenIdentifier, getAllKeys, getCurrentKeyId, getDelegationKey, getDelegationTokenSeqNum, getTokenInfo, getTokenTrackingId, getTrackingIdIfEnabled, incrementCurrentKeyId, incrementDelegationTokenSeqNum, isRunning, logExpireToken, logExpireTokens, logUpdateMasterKey, removeStoredMasterKey, removeStoredToken, renewToken, reset, retrievePassword, setCurrentKeyId, setDelegationTokenSeqNum, startThreads, stopThreads, storeDelegationKey, storeNewMasterKey, storeNewToken, storeToken, updateDelegationKey, updateStoredToken, updateToken, verifyTokenpublic DelegationTokenSecretManager(long delegationKeyUpdateInterval,
long delegationTokenMaxLifetime,
long delegationTokenRenewInterval,
long delegationTokenRemoverScanInterval)
delegationKeyUpdateInterval - the number of seconds for rolling new
secret keys.delegationTokenMaxLifetime - the maximum lifetime of the delegation
tokensdelegationTokenRenewInterval - how often the tokens must be reneweddelegationTokenRemoverScanInterval - how often the tokens are scanned
for expired tokenspublic DelegationTokenIdentifier createIdentifier()
createIdentifier in class org.apache.hadoop.security.token.SecretManager<DelegationTokenIdentifier>public String verifyDelegationToken(String tokenStrForm) throws IOException
tokenStrForm - IOExceptionprotected DelegationTokenIdentifier getTokenIdentifier(org.apache.hadoop.security.token.Token<DelegationTokenIdentifier> token) throws IOException
IOExceptionpublic void cancelDelegationToken(String tokenStrForm) throws IOException
IOExceptionpublic long renewDelegationToken(String tokenStrForm) throws IOException
IOExceptionpublic String getDelegationToken(String ownerStr, String renewer) throws IOException
IOExceptionpublic String getUserFromToken(String tokenStr) throws IOException
IOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.