public class NMTokenSecretManagerInNM extends BaseNMTokenSecretManager
SecretManager.InvalidToken
currentMasterKey, readLock, readWriteLock, writeLock
Constructor and Description |
---|
NMTokenSecretManagerInNM() |
Modifier and Type | Method and Description |
---|---|
void |
appAttemptStartContainer(NMTokenIdentifier identifier)
This will be called by startContainer.
|
void |
appFinished(ApplicationId appId) |
NodeId |
getNodeId() |
boolean |
isAppAttemptNMTokenKeyPresent(ApplicationAttemptId appAttemptId) |
byte[] |
retrievePassword(NMTokenIdentifier identifier)
This method will be used to verify NMTokens generated by different master
keys.
|
void |
setMasterKey(MasterKey masterKey)
Used by NodeManagers to create a token-secret-manager with the key
obtained from the RM.
|
void |
setNodeId(NodeId nodeId) |
createIdentifier, createNewMasterKey, createNMToken, createPassword, getCurrentKey, newInstance, retrivePasswordInternal
checkAvailableForRead, createPassword, createSecretKey, generateSecret
@InterfaceAudience.Private public void setMasterKey(MasterKey masterKey)
public byte[] retrievePassword(NMTokenIdentifier identifier) throws SecretManager.InvalidToken
retrievePassword
in class BaseNMTokenSecretManager
identifier
- the identifier to validateSecretManager.InvalidToken
- the token was invalidpublic void appFinished(ApplicationId appId)
public void appAttemptStartContainer(NMTokenIdentifier identifier) throws SecretManager.InvalidToken
SecretManager.InvalidToken
public void setNodeId(NodeId nodeId)
@InterfaceAudience.Private public boolean isAppAttemptNMTokenKeyPresent(ApplicationAttemptId appAttemptId)
@InterfaceAudience.Private public NodeId getNodeId()
Copyright © 2013 Apache Software Foundation. All rights reserved.