public class NMContainerTokenSecretManager extends BaseContainerTokenSecretManager
SecretManager.InvalidToken
containerTokenExpiryInterval, currentMasterKey, readLock, readWriteLock, writeLock
Constructor and Description |
---|
NMContainerTokenSecretManager(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
boolean |
isValidStartContainerRequest(ContainerTokenIdentifier containerTokenIdentifier)
Container will be remembered based on expiration time of the container
token used for starting the container.
|
protected void |
removeAnyContainerTokenIfExpired() |
byte[] |
retrievePassword(ContainerTokenIdentifier identifier)
Override of this is to validate ContainerTokens generated by using
different
MasterKey s. |
void |
setMasterKey(MasterKey masterKeyRecord)
Used by NodeManagers to create a token-secret-manager with the key obtained
from the RM.
|
void |
setNodeId(NodeId nodeId) |
void |
startContainerSuccessful(ContainerTokenIdentifier tokenId)
Container start has gone through.
|
createIdentifier, createNewMasterKey, createPassword, getCurrentKey, retrievePasswordInternal
checkAvailableForRead, createPassword, createSecretKey, generateSecret
public NMContainerTokenSecretManager(Configuration conf)
@InterfaceAudience.Private public void setMasterKey(MasterKey masterKeyRecord)
masterKeyRecord
- public byte[] retrievePassword(ContainerTokenIdentifier identifier) throws SecretManager.InvalidToken
MasterKey
s.retrievePassword
in class BaseContainerTokenSecretManager
identifier
- the identifier to validateSecretManager.InvalidToken
- the token was invalidpublic void startContainerSuccessful(ContainerTokenIdentifier tokenId)
protected void removeAnyContainerTokenIfExpired()
public boolean isValidStartContainerRequest(ContainerTokenIdentifier containerTokenIdentifier)
public void setNodeId(NodeId nodeId)
Copyright © 2013 Apache Software Foundation. All rights reserved.