public static interface KeyProviderDelegationTokenExtension.DelegationTokenExtension extends KeyProviderExtension.Extension
| Modifier and Type | Method and Description |
|---|---|
Token<?>[] |
addDelegationTokens(String renewer,
Credentials credentials)
The implementer of this class will take a renewer and add all
delegation tokens associated with the renewer to the
Credentials object if it is not already present, |
Void |
cancelDelegationToken(Token<?> token)
Cancels the given token.
|
long |
renewDelegationToken(Token<?> token)
Renews the given token.
|
Token<?>[] addDelegationTokens(String renewer, Credentials credentials) throws IOException
Credentials object if it is not already present,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.long renewDelegationToken(Token<?> token) throws IOException
token - The token to be renewed.IOExceptionVoid cancelDelegationToken(Token<?> token) throws IOException
token - The token to be cancelled.IOExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.