org.apache.hadoop.yarn.security.client
Class BaseClientToAMTokenSecretManager

java.lang.Object
  extended by org.apache.hadoop.security.token.SecretManager<ClientTokenIdentifier>
      extended by org.apache.hadoop.yarn.security.client.BaseClientToAMTokenSecretManager
Direct Known Subclasses:
ClientToAMTokenSecretManager

public abstract class BaseClientToAMTokenSecretManager
extends org.apache.hadoop.security.token.SecretManager<ClientTokenIdentifier>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.security.token.SecretManager
org.apache.hadoop.security.token.SecretManager.InvalidToken
 
Constructor Summary
BaseClientToAMTokenSecretManager()
           
 
Method Summary
 ClientTokenIdentifier createIdentifier()
           
 byte[] createPassword(ClientTokenIdentifier identifier)
           
abstract  SecretKey getMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)
           
 byte[] retrievePassword(ClientTokenIdentifier identifier)
           
 
Methods inherited from class org.apache.hadoop.security.token.SecretManager
checkAvailableForRead, createPassword, createSecretKey, generateSecret
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseClientToAMTokenSecretManager

public BaseClientToAMTokenSecretManager()
Method Detail

getMasterKey

public abstract SecretKey getMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptId)

createPassword

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

retrievePassword

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

createIdentifier

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


Copyright © 2013 Apache Software Foundation. All Rights Reserved.