org.apache.hadoop.yarn.server
Class RMDelegationTokenSecretManager
java.lang.Object
org.apache.hadoop.security.token.SecretManager<TokenIdent>
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier>
org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager
@InterfaceAudience.Private
@InterfaceStability.Unstable
public class RMDelegationTokenSecretManager
- extends org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier>
A ResourceManager specific delegation token secret manager.
The secret manager is responsible for generating and accepting the password
for each token.
| Nested classes/interfaces inherited from class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager |
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation |
| Nested classes/interfaces inherited from class org.apache.hadoop.security.token.SecretManager |
org.apache.hadoop.security.token.SecretManager.InvalidToken |
| Fields inherited from class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager |
allKeys, currentId, currentTokens, delegationTokenSequenceNumber, noInterruptsLock, running |
|
Constructor Summary |
RMDelegationTokenSecretManager(long delegationKeyUpdateInterval,
long delegationTokenMaxLifetime,
long delegationTokenRenewInterval,
long delegationTokenRemoverScanInterval)
Create a secret manager |
|
Method Summary |
org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier |
createIdentifier()
|
| Methods inherited from class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager |
addKey, cancelToken, createPassword, createSecretKey, getAllKeys, isRunning, logUpdateMasterKey, renewToken, reset, retrievePassword, startThreads, stopThreads, verifyToken |
| Methods inherited from class org.apache.hadoop.security.token.SecretManager |
checkAvailableForRead, createPassword, generateSecret |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RMDelegationTokenSecretManager
public RMDelegationTokenSecretManager(long delegationKeyUpdateInterval,
long delegationTokenMaxLifetime,
long delegationTokenRenewInterval,
long delegationTokenRemoverScanInterval)
- Create a secret manager
- Parameters:
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 tokens
createIdentifier
public org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier createIdentifier()
- Specified by:
createIdentifier in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.client.RMDelegationTokenIdentifier>
Copyright © 2013 Apache Software Foundation. All Rights Reserved.