public class FullCredentialsTokenBinding extends AbstractDelegationTokenBinding
AbstractDelegationTokenBinding.TokenSecretManager| Modifier and Type | Field and Description |
|---|---|
static String |
FULL_TOKEN |
| Constructor and Description |
|---|
FullCredentialsTokenBinding()
Constructor, uses name of
NAME and token kind of
DelegationConstants.FULL_TOKEN_KIND. |
| Modifier and Type | Method and Description |
|---|---|
AWSCredentialProviderList |
bindToTokenIdentifier(AbstractS3ATokenIdentifier retrievedIdentifier)
Bind to the token identifier, returning the credential providers to use
for the owner to talk to S3 and related AWS Services.
|
AbstractS3ATokenIdentifier |
createEmptyIdentifier()
Create a new subclass of
AbstractS3ATokenIdentifier. |
AbstractS3ATokenIdentifier |
createTokenIdentifier(Optional<RoleModel.Policy> policy,
EncryptionSecrets encryptionSecrets,
org.apache.hadoop.io.Text renewer)
Create a new delegation token.
|
AWSCredentialProviderList |
deployUnbonded()
Serve up the credentials retrieved from configuration/environment in
loadAWSCredentials(). |
protected void |
serviceStart()
Service startup: create the secret manager.
|
convertTokenIdentifier, createDelegationToken, createSecretMananger, deploy, getDescription, getKind, getOwnerText, getSecretManagerPasssword, getTokenIssuingPolicy, getUserAgentField, toStringbindToFileSystem, getCanonicalUri, getOwner, getPolicyProvider, getStoreContext, requireServiceStarted, requireServiceState, serviceInitclose, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStop, setConfig, start, stop, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final String FULL_TOKEN
public FullCredentialsTokenBinding()
NAME and token kind of
DelegationConstants.FULL_TOKEN_KIND.protected void serviceStart()
throws Exception
AbstractDelegationTokenBindingserviceStart in class AbstractDelegationTokenBindingException - failure.public AWSCredentialProviderList deployUnbonded() throws IOException
loadAWSCredentials().deployUnbonded in class AbstractDelegationTokenBindingIOException - failure to loadpublic AbstractS3ATokenIdentifier createTokenIdentifier(Optional<RoleModel.Policy> policy, EncryptionSecrets encryptionSecrets, org.apache.hadoop.io.Text renewer) throws IOException
createTokenIdentifier in class AbstractDelegationTokenBindingpolicy - minimum policy to use, if known.encryptionSecrets - encryption secrets.renewer - the principal permitted to renew the token.IOException - failurepublic AWSCredentialProviderList bindToTokenIdentifier(AbstractS3ATokenIdentifier retrievedIdentifier) throws IOException
AbstractDelegationTokenBindingbindToTokenIdentifier in class AbstractDelegationTokenBindingretrievedIdentifier - the unmarshalled dataIOException - any failurepublic AbstractS3ATokenIdentifier createEmptyIdentifier()
AbstractDelegationTokenBindingAbstractS3ATokenIdentifier.
This is used in the secret manager.createEmptyIdentifier in class AbstractDelegationTokenBindingCopyright © 2008–2024 Apache Software Foundation. All rights reserved.