java.lang.AutoCloseable, java.io.CloseableAbfsDelegationTokenManager, CustomTokenProviderAdapter@LimitedPrivate("authorization-subsystems")
@Unstable
public interface BoundDTExtension
extends java.io.Closeable
CustomDelegationTokenManager or a CustomTokenProviderAdaptee.
In both cases, extra lifecycle operation will be invoked.
bind(URI, Configuration) will
be invoked after initialize()Closeable.close() will be invoked
when the Filesystem instance is closed.getCanonicalServiceName() will be invoked on a Custom
DT provider when the filesystem is asked for a Canonical Service Name.
The getUserAgentSuffix() is invoked on a CustomTokenProviderAdaptee
as the filesystem is initialized; the User Agent Suffix which it returns
is included in the UA header used for the ABFS Client -and so logged
in the ABFS access logs.
This allows for token providers to to provide extra information
about the caller for use in auditing requests.| Modifier and Type | Method | Description |
|---|---|---|
void |
bind(java.net.URI fsURI,
org.apache.hadoop.conf.Configuration conf) |
Bind the extension to the specific instance of ABFS.
|
default java.lang.String |
getCanonicalServiceName() |
Get the canonical service name, which will be
returned by
FileSystem.getCanonicalServiceName() and so used to
map the issued DT in credentials, including credential files collected
for job submission. |
default java.lang.String |
getUserAgentSuffix() |
Get a suffix for the UserAgent suffix of HTTP requests, which
can be used to identify the principal making ABFS requests.
|
void bind(java.net.URI fsURI,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
fsURI - URI of the filesystem.conf - configuration of this extension.java.io.IOException - failure during binding.default java.lang.String getCanonicalServiceName()
FileSystem.getCanonicalServiceName() and so used to
map the issued DT in credentials, including credential files collected
for job submission.
If null is returned: fall back to the default filesystem logic.
Only invoked on CustomDelegationTokenManager instances.default java.lang.String getUserAgentSuffix()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.