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.Extension
KeyProvider.KeyVersion, KeyProvider.Metadata, KeyProvider.Options
DEFAULT_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, toString
buildVersionName, close, findProvider, generateKey, getBaseName, getConf, needsPassword, noPasswordError, noPasswordWarning, options
public String getCanonicalServiceName()
org.apache.hadoop.security.token.DelegationTokenIssuer
getCanonicalServiceName
in interface org.apache.hadoop.security.token.DelegationTokenIssuer
public Token<?> getDelegationToken(String renewer) throws IOException
org.apache.hadoop.security.token.DelegationTokenIssuer
getDelegationToken
in interface org.apache.hadoop.security.token.DelegationTokenIssuer
IOException
public 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–2021 Apache Software Foundation. All rights reserved.