public class BaseContainerTokenSecretManager extends SecretManager<ContainerTokenIdentifier>
SecretManager.InvalidToken
Modifier and Type | Field and Description |
---|---|
protected long |
containerTokenExpiryInterval |
protected MasterKeyData |
currentMasterKey
THE masterKey.
|
protected Lock |
readLock |
protected ReadWriteLock |
readWriteLock |
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)
Create the password for the given identifier.
|
MasterKey |
getCurrentKey() |
byte[] |
retrievePassword(ContainerTokenIdentifier identifier)
Retrieve the password for the given token identifier.
|
protected byte[] |
retrievePasswordInternal(ContainerTokenIdentifier identifier,
MasterKeyData masterKey) |
checkAvailableForRead, createPassword, createSecretKey, generateSecret
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)
SecretManager
createPassword
in class SecretManager<ContainerTokenIdentifier>
identifier
- the identifier to usepublic byte[] retrievePassword(ContainerTokenIdentifier identifier) throws SecretManager.InvalidToken
SecretManager
retrievePassword
in class SecretManager<ContainerTokenIdentifier>
identifier
- the identifier to validateSecretManager.InvalidToken
- the token was invalidprotected byte[] retrievePasswordInternal(ContainerTokenIdentifier identifier, MasterKeyData masterKey) throws SecretManager.InvalidToken
SecretManager.InvalidToken
public ContainerTokenIdentifier createIdentifier()
createIdentifier
in class SecretManager<ContainerTokenIdentifier>
Copyright © 2013 Apache Software Foundation. All rights reserved.