public class BaseNMTokenSecretManager
extends org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.NMTokenIdentifier>
| Modifier and Type | Field and Description | 
|---|---|
| protected MasterKeyData | currentMasterKey | 
| protected Lock | readLock | 
| protected ReadWriteLock | readWriteLock | 
| protected int | serialNo | 
| protected Lock | writeLock | 
| Constructor and Description | 
|---|
| BaseNMTokenSecretManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.hadoop.yarn.security.NMTokenIdentifier | createIdentifier()It is required for RPC | 
| protected MasterKeyData | createNewMasterKey() | 
| org.apache.hadoop.yarn.api.records.Token | createNMToken(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
             org.apache.hadoop.yarn.api.records.NodeId nodeId,
             String applicationSubmitter)Helper function for creating NMTokens. | 
| protected byte[] | createPassword(org.apache.hadoop.yarn.security.NMTokenIdentifier identifier) | 
| MasterKey | getCurrentKey() | 
| static org.apache.hadoop.yarn.api.records.Token | newInstance(byte[] password,
           org.apache.hadoop.yarn.security.NMTokenIdentifier identifier) | 
| byte[] | retrievePassword(org.apache.hadoop.yarn.security.NMTokenIdentifier identifier) | 
| protected byte[] | retrivePasswordInternal(org.apache.hadoop.yarn.security.NMTokenIdentifier identifier,
                       MasterKeyData masterKey) | 
protected int serialNo
protected final ReadWriteLock readWriteLock
protected final Lock readLock
protected final Lock writeLock
protected MasterKeyData currentMasterKey
protected MasterKeyData createNewMasterKey()
@InterfaceAudience.Private public MasterKey getCurrentKey()
protected byte[] createPassword(org.apache.hadoop.yarn.security.NMTokenIdentifier identifier)
createPassword in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.NMTokenIdentifier>public byte[] retrievePassword(org.apache.hadoop.yarn.security.NMTokenIdentifier identifier)
                        throws org.apache.hadoop.security.token.SecretManager.InvalidToken
retrievePassword in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.NMTokenIdentifier>org.apache.hadoop.security.token.SecretManager.InvalidTokenprotected byte[] retrivePasswordInternal(org.apache.hadoop.yarn.security.NMTokenIdentifier identifier,
                                         MasterKeyData masterKey)
public org.apache.hadoop.yarn.security.NMTokenIdentifier createIdentifier()
createIdentifier in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.NMTokenIdentifier>public org.apache.hadoop.yarn.api.records.Token createNMToken(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId,
                                                              org.apache.hadoop.yarn.api.records.NodeId nodeId,
                                                              String applicationSubmitter)
public static org.apache.hadoop.yarn.api.records.Token newInstance(byte[] password,
                                                                   org.apache.hadoop.yarn.security.NMTokenIdentifier identifier)
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.