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.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 |
|---|---|
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, toStringbuildVersionName, close, findProvider, generateKey, getBaseName, getConf, needsPassword, noPasswordError, noPasswordWarning, optionspublic Token<?>[] addDelegationTokens(String renewer, Credentials credentials) throws IOException
KeyProviderDelegationTokenExtension.DelegationTokenExtensionrenewer - 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 © 2019 Apache Software Foundation. All Rights Reserved.