public static interface KeyProviderDelegationTokenExtension.DelegationTokenExtension extends KeyProviderExtension.Extension
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.security.token.Token<?>[] |
addDelegationTokens(String renewer,
org.apache.hadoop.security.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, |
org.apache.hadoop.security.token.Token<?>[] addDelegationTokens(String renewer, org.apache.hadoop.security.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.Copyright © 2017 Apache Software Foundation. All Rights Reserved.