org.apache.hadoop.security.token.delegation
Class HiveDelegationTokenSupport

java.lang.Object
  extended by org.apache.hadoop.security.token.delegation.HiveDelegationTokenSupport

public final class HiveDelegationTokenSupport
extends Object

Workaround for serialization of AbstractDelegationTokenSecretManager.DelegationTokenInformation through package access. Future version of Hadoop should add this to DelegationTokenInformation itself.


Method Summary
static org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation decodeDelegationTokenInformation(byte[] tokenBytes)
           
static byte[] encodeDelegationTokenInformation(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation token)
           
static void rollMasterKey(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<? extends org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier> mgr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeDelegationTokenInformation

public static byte[] encodeDelegationTokenInformation(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation token)

decodeDelegationTokenInformation

public static org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.DelegationTokenInformation decodeDelegationTokenInformation(byte[] tokenBytes)
                                                                                                                                                    throws IOException
Throws:
IOException

rollMasterKey

public static void rollMasterKey(org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager<? extends org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier> mgr)
                          throws IOException
Throws:
IOException


Copyright © 2014 The Apache Software Foundation. All rights reserved.