public class KeyProviderDelegationTokenExtension extends KeyProviderExtension<KeyProviderDelegationTokenExtension.DelegationTokenExtension>
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
Modifier and Type | Method and Description |
---|---|
Token<?>[] |
addDelegationTokens(String renewer,
Credentials credentials)
Passes the renewer and Credentials object to the underlying
KeyProviderDelegationTokenExtension.DelegationTokenExtension |
static KeyProviderDelegationTokenExtension |
createKeyProviderDelegationTokenExtension(KeyProvider keyProvider)
Creates a
KeyProviderDelegationTokenExtension using a given
KeyProvider . |
createKey, createKey, deleteKey, flush, getCurrentKey, getExtension, getKeyProvider, getKeys, getKeysMetadata, getKeyVersion, getKeyVersions, getMetadata, isTransient, rollNewVersion, rollNewVersion, toString
buildVersionName, close, findProvider, generateKey, getBaseName, getConf, needsPassword, noPasswordError, noPasswordWarning, options
public Token<?>[] addDelegationTokens(String renewer, Credentials credentials) throws IOException
KeyProviderDelegationTokenExtension.DelegationTokenExtension
renewer
- the user allowed to renew the delegation tokenscredentials
- cache in which to add new delegation tokensIOException
- thrown if IOException if an IO error occurs.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 © 2017 Apache Software Foundation. All Rights Reserved.