public class AbfsDelegationTokenManager extends Object implements BoundDTExtension
ConfigurationKeys.FS_AZURE_DELEGATION_TOKEN_PROVIDER_TYPE and
issues tokens from it.| Constructor and Description |
|---|
AbfsDelegationTokenManager(org.apache.hadoop.conf.Configuration conf)
Create the custom delegation token manager and call its
CustomDelegationTokenManager.initialize(Configuration) method. |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(URI fsURI,
org.apache.hadoop.conf.Configuration conf)
Bind to a filesystem instance by passing the binding information down
to any token manager which implements
BoundDTExtension. |
void |
cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token) |
void |
close()
Close.
|
String |
getCanonicalServiceName()
Query the token manager for the service name; if it does not implement
the extension interface, null is returned.
|
org.apache.hadoop.security.token.Token<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier> |
getDelegationToken(String renewer)
Get a delegation token by invoking
CustomDelegationTokenManager.getDelegationToken(String). |
CustomDelegationTokenManager |
getTokenManager() |
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<?> token) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUserAgentSuffixpublic AbfsDelegationTokenManager(org.apache.hadoop.conf.Configuration conf)
throws IOException
CustomDelegationTokenManager.initialize(Configuration) method.conf - configurationIOException - failure during initialization.RuntimeException - classloading problems.public void bind(URI fsURI, org.apache.hadoop.conf.Configuration conf) throws IOException
BoundDTExtension.
This is not invoked before renew or cancel operations, but is guaranteed
to be invoked before calls to getDelegationToken(String).bind in interface BoundDTExtensionfsURI - URI of the filesystem.conf - configuration of this extension.IOException - bind failure.public String getCanonicalServiceName()
getCanonicalServiceName in interface BoundDTExtensionpublic void close()
Closeable.close()
method (quietly) invoked.close in interface Closeableclose in interface AutoCloseablepublic org.apache.hadoop.security.token.Token<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier> getDelegationToken(String renewer) throws IOException
CustomDelegationTokenManager.getDelegationToken(String).
If the token returned already has a Kind; that is used.
If not, then the token kind is set to
AbfsDelegationTokenIdentifier.TOKEN_KIND, which implicitly
resets any token renewer class.renewer - the principal permitted to renew the token.IOException - failure.public long renewDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws IOException
IOExceptionpublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws IOException
IOException@VisibleForTesting public CustomDelegationTokenManager getTokenManager()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.