org.apache.hadoop.crypto.key
Interface KeyProviderDelegationTokenExtension.DelegationTokenExtension

All Superinterfaces:
KeyProviderExtension.Extension
Enclosing class:
KeyProviderDelegationTokenExtension

public static interface KeyProviderDelegationTokenExtension.DelegationTokenExtension
extends KeyProviderExtension.Extension

DelegationTokenExtension is a type of Extension that exposes methods to needed to work with Delegation Tokens.


Method Summary
 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,
 

Method Detail

addDelegationTokens

org.apache.hadoop.security.token.Token<?>[] addDelegationTokens(String renewer,
                                                                org.apache.hadoop.security.Credentials credentials)
                                                                throws IOException
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,

Parameters:
renewer - the user allowed to renew the delegation tokens
credentials - cache in which to add new delegation tokens
Returns:
list of new delegation tokens
Throws:
IOException - thrown if IOException if an IO error occurs.


Copyright © 2014 Apache Software Foundation. All Rights Reserved.