public class BaseContainerTokenSecretManager
extends org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>
| Modifier and Type | Field and Description |
|---|---|
protected long |
containerTokenExpiryInterval |
protected MasterKeyData |
currentMasterKey
THE masterKey.
|
protected Lock |
readLock |
protected ReadWriteLock |
readWriteLock |
protected int |
serialNo |
protected Lock |
writeLock |
| Constructor and Description |
|---|
BaseContainerTokenSecretManager(org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.security.ContainerTokenIdentifier |
createIdentifier()
Used by the RPC layer.
|
protected MasterKeyData |
createNewMasterKey() |
byte[] |
createPassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier) |
MasterKey |
getCurrentKey() |
byte[] |
retrievePassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier) |
protected byte[] |
retrievePasswordInternal(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier,
MasterKeyData masterKey) |
protected int serialNo
protected final ReadWriteLock readWriteLock
protected final Lock readLock
protected final Lock writeLock
protected MasterKeyData currentMasterKey
protected final long containerTokenExpiryInterval
public BaseContainerTokenSecretManager(org.apache.hadoop.conf.Configuration conf)
protected MasterKeyData createNewMasterKey()
@InterfaceAudience.Private public MasterKey getCurrentKey()
public byte[] createPassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier)
createPassword in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>public byte[] retrievePassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier)
throws org.apache.hadoop.security.token.SecretManager.InvalidToken
retrievePassword in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>org.apache.hadoop.security.token.SecretManager.InvalidTokenprotected byte[] retrievePasswordInternal(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier,
MasterKeyData masterKey)
throws org.apache.hadoop.security.token.SecretManager.InvalidToken
org.apache.hadoop.security.token.SecretManager.InvalidTokenpublic org.apache.hadoop.yarn.security.ContainerTokenIdentifier createIdentifier()
createIdentifier in class org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>Copyright © 2022 Apache Software Foundation. All rights reserved.