public class BaseNMTokenSecretManager
extends org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.NMTokenIdentifier>
| Modifier and Type | Field | Description |
|---|---|---|
protected MasterKeyData |
currentMasterKey |
|
protected java.util.concurrent.locks.Lock |
readLock |
|
protected java.util.concurrent.locks.ReadWriteLock |
readWriteLock |
|
protected int |
serialNo |
|
protected java.util.concurrent.locks.Lock |
writeLock |
| Constructor | Description |
|---|---|
BaseNMTokenSecretManager() |
| Modifier and Type | Method | 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,
java.lang.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 java.util.concurrent.locks.ReadWriteLock readWriteLock
protected final java.util.concurrent.locks.Lock readLock
protected final java.util.concurrent.locks.Lock writeLock
protected MasterKeyData currentMasterKey
protected MasterKeyData createNewMasterKey()
@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,
java.lang.String applicationSubmitter)
applicationAttemptId - application AttemptId.nodeId - node Id.applicationSubmitter - application Submitter.public static org.apache.hadoop.yarn.api.records.Token newInstance(byte[] password,
org.apache.hadoop.yarn.security.NMTokenIdentifier identifier)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.