java.io.Closeable, java.lang.AutoCloseable, BoundDTExtensionpublic class AbfsDelegationTokenManager extends java.lang.Object implements BoundDTExtension
ConfigurationKeys.FS_AZURE_DELEGATION_TOKEN_PROVIDER_TYPE and
issues tokens from it.| Constructor | 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 | Description |
|---|---|---|
void |
bind(java.net.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.
|
java.lang.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(java.lang.String renewer) |
Get a delegation token by invoking
CustomDelegationTokenManager.getDelegationToken(String). |
CustomDelegationTokenManager |
getTokenManager() |
|
long |
renewDelegationToken(org.apache.hadoop.security.token.Token<?> token) |
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetUserAgentSuffixpublic AbfsDelegationTokenManager(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
CustomDelegationTokenManager.initialize(Configuration) method.conf - configurationjava.io.IOException - failure during initialization.java.lang.RuntimeException - classloading problems.public void bind(java.net.URI fsURI,
org.apache.hadoop.conf.Configuration conf)
throws java.io.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.java.io.IOException - bind failure.public java.lang.String getCanonicalServiceName()
getCanonicalServiceName in interface BoundDTExtensionpublic void close()
Closeable.close()
method (quietly) invoked.close in interface java.lang.AutoCloseableclose in interface java.io.Closeablepublic org.apache.hadoop.security.token.Token<org.apache.hadoop.security.token.delegation.web.DelegationTokenIdentifier> getDelegationToken(java.lang.String renewer)
throws java.io.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.java.io.IOException - failure.public long renewDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws java.io.IOException
java.io.IOExceptionpublic void cancelDelegationToken(org.apache.hadoop.security.token.Token<?> token)
throws java.io.IOException
java.io.IOException@VisibleForTesting public CustomDelegationTokenManager getTokenManager()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.