public class RMContainerTokenSecretManager extends BaseContainerTokenSecretManager
SecretManager.InvalidToken
containerTokenExpiryInterval, currentMasterKey, readLock, readWriteLock, writeLock
Constructor and Description |
---|
RMContainerTokenSecretManager(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
activateNextMasterKey()
Activate the new master-key
|
Token |
createContainerToken(ContainerId containerId,
NodeId nodeId,
String appSubmitter,
Resource capability)
Helper function for creating ContainerTokens
|
MasterKey |
getNextKey() |
void |
rollMasterKey()
Creates a new master-key and sets it as the primary.
|
void |
start() |
void |
stop() |
createIdentifier, createNewMasterKey, createPassword, getCurrentKey, retrievePassword, retrievePasswordInternal
checkAvailableForRead, createPassword, createSecretKey, generateSecret
public RMContainerTokenSecretManager(Configuration conf)
public void start()
public void stop()
@InterfaceAudience.Private public void rollMasterKey()
@InterfaceAudience.Private public MasterKey getNextKey()
@InterfaceAudience.Private public void activateNextMasterKey()
public Token createContainerToken(ContainerId containerId, NodeId nodeId, String appSubmitter, Resource capability)
containerId
- nodeId
- appSubmitter
- capability
- Copyright © 2013 Apache Software Foundation. All rights reserved.