public class BaseContainerTokenSecretManager extends org.apache.hadoop.security.token.SecretManager<ContainerTokenIdentifier>
org.apache.hadoop.security.token.SecretManager.InvalidToken| 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(Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
ContainerTokenIdentifier |
createIdentifier()
Used by the RPC layer.
|
protected MasterKeyData |
createNewMasterKey() |
byte[] |
createPassword(ContainerTokenIdentifier identifier) |
MasterKey |
getCurrentKey() |
byte[] |
retrievePassword(ContainerTokenIdentifier identifier) |
protected byte[] |
retrievePasswordInternal(ContainerTokenIdentifier identifier,
MasterKeyData masterKey) |
checkAvailableForRead, createPassword, createSecretKey, generateSecret, retriableRetrievePasswordprotected int serialNo
protected final ReadWriteLock readWriteLock
protected final Lock readLock
protected final Lock writeLock
protected MasterKeyData currentMasterKey
protected final long containerTokenExpiryInterval
public BaseContainerTokenSecretManager(Configuration conf)
protected MasterKeyData createNewMasterKey()
@InterfaceAudience.Private public MasterKey getCurrentKey()
public byte[] createPassword(ContainerTokenIdentifier identifier)
createPassword in class org.apache.hadoop.security.token.SecretManager<ContainerTokenIdentifier>public byte[] retrievePassword(ContainerTokenIdentifier identifier) throws org.apache.hadoop.security.token.SecretManager.InvalidToken
protected byte[] retrievePasswordInternal(ContainerTokenIdentifier identifier, MasterKeyData masterKey) throws org.apache.hadoop.security.token.SecretManager.InvalidToken
public ContainerTokenIdentifier createIdentifier()
createIdentifier in class org.apache.hadoop.security.token.SecretManager<ContainerTokenIdentifier>Copyright © 2018 CERN. All Rights Reserved.