@InterfaceAudience.LimitedPrivate(value="authorization-subsystems") @InterfaceStability.Unstable public interface BoundDTExtension extends 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 and Description |
|---|---|
void |
bind(URI fsURI,
org.apache.hadoop.conf.Configuration conf)
Bind the extension to the specific instance of ABFS.
|
default 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 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(URI fsURI, org.apache.hadoop.conf.Configuration conf) throws IOException
fsURI - URI of the filesystem.conf - configuration of this extension.IOException - failure during binding.default 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 String getUserAgentSuffix()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.