Class AbstractDelegationTokenBinding.TokenSecretManager
java.lang.Object
org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier>
com.google.cloud.hadoop.fs.gcs.auth.AbstractDelegationTokenBinding.TokenSecretManager
- Enclosing class:
- AbstractDelegationTokenBinding
protected class AbstractDelegationTokenBinding.TokenSecretManager
extends org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier>
The secret manager always uses the same secret; the factory for new identifiers is that of the
token manager.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.security.token.SecretManager
org.apache.hadoop.security.token.SecretManager.InvalidToken -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifierprotected byte[]createPassword(org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier identifier) byte[]retrievePassword(org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier identifier) Methods inherited from class org.apache.hadoop.security.token.SecretManager
checkAvailableForRead, createPassword, createSecretKey, generateSecret, retriableRetrievePassword
-
Constructor Details
-
TokenSecretManager
protected TokenSecretManager()
-
-
Method Details
-
createPassword
protected byte[] createPassword(org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier identifier) - Specified by:
createPasswordin classorg.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier>
-
retrievePassword
public byte[] retrievePassword(org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier identifier) - Specified by:
retrievePasswordin classorg.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier>
-
createIdentifier
public org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier createIdentifier()- Specified by:
createIdentifierin classorg.apache.hadoop.security.token.SecretManager<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier>
-