public class KeyProviderDelegationTokenExtension extends KeyProviderExtension<KeyProviderDelegationTokenExtension.DelegationTokenExtension> implements org.apache.hadoop.security.token.DelegationTokenIssuer
| Modifier and Type | Class and Description |
|---|---|
static interface |
KeyProviderDelegationTokenExtension.DelegationTokenExtension
DelegationTokenExtension is a type of Extension that exposes methods
needed to work with Delegation Tokens.
|
KeyProviderExtension.ExtensionKeyProvider.KeyVersion, KeyProvider.Metadata, KeyProvider.OptionsDEFAULT_BITLENGTH, DEFAULT_BITLENGTH_NAME, DEFAULT_CIPHER, DEFAULT_CIPHER_NAME, JCEKS_KEY_SERIAL_FILTER, JCEKS_KEY_SERIALFILTER_DEFAULT| Modifier and Type | Method and Description |
|---|---|
static KeyProviderDelegationTokenExtension |
createKeyProviderDelegationTokenExtension(KeyProvider keyProvider)
Creates a
KeyProviderDelegationTokenExtension using a given
KeyProvider. |
String |
getCanonicalServiceName()
The service name used as the alias for the token in the credential
token map.
|
Token<?> |
getDelegationToken(String renewer)
Unconditionally get a new token with the optional renewer.
|
createKey, createKey, deleteKey, flush, getCurrentKey, getExtension, getKeyProvider, getKeys, getKeysMetadata, getKeyVersion, getKeyVersions, getMetadata, invalidateCache, isTransient, rollNewVersion, rollNewVersion, toStringbuildVersionName, close, findProvider, generateKey, getBaseName, getConf, needsPassword, noPasswordError, noPasswordWarning, optionspublic String getCanonicalServiceName()
org.apache.hadoop.security.token.DelegationTokenIssuergetCanonicalServiceName in interface org.apache.hadoop.security.token.DelegationTokenIssuerpublic Token<?> getDelegationToken(String renewer) throws IOException
org.apache.hadoop.security.token.DelegationTokenIssuergetDelegationToken in interface org.apache.hadoop.security.token.DelegationTokenIssuerIOExceptionpublic static KeyProviderDelegationTokenExtension createKeyProviderDelegationTokenExtension(KeyProvider keyProvider)
KeyProviderDelegationTokenExtension using a given
KeyProvider.
If the given KeyProvider implements the
KeyProviderDelegationTokenExtension.DelegationTokenExtension interface the KeyProvider
itself will provide the extension functionality, otherwise a default
extension implementation will be used.keyProvider - KeyProvider to use to create the
KeyProviderDelegationTokenExtension extension.KeyProviderDelegationTokenExtension instance
using the given KeyProvider.Copyright © 2008–2022 Apache Software Foundation. All rights reserved.