org.apache.hadoop.yarn.server.security
Class ContainerTokenSecretManager
java.lang.Object
org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>
org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager
public class ContainerTokenSecretManager
- extends org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.ContainerTokenIdentifier>
| Nested classes/interfaces inherited from class org.apache.hadoop.security.token.SecretManager |
org.apache.hadoop.security.token.SecretManager.InvalidToken |
| 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 |
ContainerTokenSecretManager
public ContainerTokenSecretManager()
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.