public class NMContainerTokenSecretManager extends BaseContainerTokenSecretManager
SecretManager.InvalidTokencontainerTokenExpiryInterval, 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
MasterKeys. |
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, retrievePasswordInternalcheckAvailableForRead, createPassword, createSecretKey, generateSecretpublic NMContainerTokenSecretManager(Configuration conf)
@InterfaceAudience.Private public void setMasterKey(MasterKey masterKeyRecord)
masterKeyRecord - public byte[] retrievePassword(ContainerTokenIdentifier identifier) throws SecretManager.InvalidToken
MasterKeys.retrievePassword in class BaseContainerTokenSecretManageridentifier - 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.