org.apache.hadoop.yarn.security
Class ApplicationTokenSecretManager

java.lang.Object
  extended by org.apache.hadoop.security.token.SecretManager<ApplicationTokenIdentifier>
      extended by org.apache.hadoop.yarn.security.ApplicationTokenSecretManager

public class ApplicationTokenSecretManager
extends org.apache.hadoop.security.token.SecretManager<ApplicationTokenIdentifier>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.security.token.SecretManager
org.apache.hadoop.security.token.SecretManager.InvalidToken
 
Constructor Summary
ApplicationTokenSecretManager()
          Default constructor
 
Method Summary
 ApplicationTokenIdentifier createIdentifier()
           
 byte[] createPassword(ApplicationTokenIdentifier identifier)
           
static SecretKey createSecretKey(byte[] key)
          Convert the byte[] to a secret key
 SecretKey getMasterKey()
           
 byte[] retrievePassword(ApplicationTokenIdentifier identifier)
           
 void setMasterKey(SecretKey mk)
           
 
Methods inherited from class org.apache.hadoop.security.token.SecretManager
createPassword, generateSecret
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationTokenSecretManager

public ApplicationTokenSecretManager()
Default constructor

Method Detail

setMasterKey

public void setMasterKey(SecretKey mk)

getMasterKey

public SecretKey getMasterKey()

createSecretKey

public static SecretKey createSecretKey(byte[] key)
Convert the byte[] to a secret key

Parameters:
key - the byte[] to create the secret key from
Returns:
the secret key

createPassword

public byte[] createPassword(ApplicationTokenIdentifier identifier)
Specified by:
createPassword in class org.apache.hadoop.security.token.SecretManager<ApplicationTokenIdentifier>

retrievePassword

public byte[] retrievePassword(ApplicationTokenIdentifier identifier)
                        throws org.apache.hadoop.security.token.SecretManager.InvalidToken
Specified by:
retrievePassword in class org.apache.hadoop.security.token.SecretManager<ApplicationTokenIdentifier>
Throws:
org.apache.hadoop.security.token.SecretManager.InvalidToken

createIdentifier

public ApplicationTokenIdentifier createIdentifier()
Specified by:
createIdentifier in class org.apache.hadoop.security.token.SecretManager<ApplicationTokenIdentifier>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.