org.apache.hadoop.yarn.server.security
Class ContainerTokenSecretManager

java.lang.Object
  extended by org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>
      extended by org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager

public class ContainerTokenSecretManager
extends org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.security.token.SecretManager
org.apache.hadoop.security.token.SecretManager.InvalidToken
 
Constructor Summary
ContainerTokenSecretManager()
           
 
Method Summary
 SecretKey createAndGetSecretKey(CharSequence hostName)
           
 org.apache.hadoop.yarn.security.ContainerTokenIdentifier createIdentifier()
           
 byte[] createPassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier)
           
 byte[] retrievePassword(org.apache.hadoop.yarn.security.ContainerTokenIdentifier identifier)
           
 void setSecretKey(CharSequence hostName, byte[] secretKeyBytes)
           
 
Methods inherited from class org.apache.hadoop.security.token.SecretManager
createPassword, createSecretKey, generateSecret
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerTokenSecretManager

public ContainerTokenSecretManager()
Method Detail

createAndGetSecretKey

public SecretKey createAndGetSecretKey(CharSequence hostName)

setSecretKey

public void setSecretKey(CharSequence hostName,
                         byte[] secretKeyBytes)

createPassword

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

retrievePassword

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

createIdentifier

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


Copyright © 2012 Apache Software Foundation. All Rights Reserved.