KeyProviderDelegationTokenExtension.DelegationTokenExtension, KeyProviderTokenIssuerAbstractMapRFileSystem, ChecksumFileSystem, FileSystem, FilterFileSystem, FTPFileSystem, HarFileSystem, HttpFileSystem, HttpsFileSystem, KeyProviderDelegationTokenExtension, KMSClientProvider, LoadBalancingKMSClientProvider, LocalFileSystem, RawLocalFileSystem, SFTPFileSystem, ViewFileSystem, ViewFileSystemOverloadScheme@LimitedPrivate({"HDFS","MapReduce","Yarn"})
@Unstable
public interface DelegationTokenIssuer
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
TOKEN_LOG |
| Modifier and Type | Method | Description |
|---|---|---|
default Token<?>[] |
addDelegationTokens(java.lang.String renewer,
Credentials credentials) |
Given a renewer, add delegation tokens for issuer and it's child issuers
to the
Credentials object if it is not already present. |
static void |
collectDelegationTokens(DelegationTokenIssuer issuer,
java.lang.String renewer,
Credentials credentials,
java.util.List<Token<?>> tokens) |
NEVER call this method directly.
|
default DelegationTokenIssuer[] |
getAdditionalTokenIssuers() |
Issuers may need tokens from additional services.
|
java.lang.String |
getCanonicalServiceName() |
The service name used as the alias for the token in the credential
token map.
|
Token<?> |
getDelegationToken(java.lang.String renewer) |
Unconditionally get a new token with the optional renewer.
|
java.lang.String getCanonicalServiceName()
Token<?> getDelegationToken(java.lang.String renewer) throws java.io.IOException
renewer - renewer.java.io.IOException - raised on errors performing I/O.default DelegationTokenIssuer[] getAdditionalTokenIssuers() throws java.io.IOException
java.io.IOException - raised on errors performing I/O.default Token<?>[] addDelegationTokens(java.lang.String renewer, Credentials credentials) throws java.io.IOException
Credentials object if it is not already present.
Note: This method is not intended to be overridden. Issuers should implement getCanonicalService and getDelegationToken to ensure consistent token acquisition behavior.
renewer - the user allowed to renew the delegation tokenscredentials - cache in which to add new delegation tokensjava.io.IOException - thrown if IOException if an IO error occurs.@Private static void collectDelegationTokens(DelegationTokenIssuer issuer, java.lang.String renewer, Credentials credentials, java.util.List<Token<?>> tokens) throws java.io.IOException
issuer - issuer.renewer - renewer.credentials - cache in which to add new delegation tokens.tokens - list of new delegation tokens.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.