org.apache.hadoop.yarn.security
Class ApplicationTokenSecretManager
java.lang.Object
org.apache.hadoop.security.token.SecretManager<ApplicationTokenIdentifier>
org.apache.hadoop.yarn.security.ApplicationTokenSecretManager
public class ApplicationTokenSecretManager
- extends org.apache.hadoop.security.token.SecretManager<ApplicationTokenIdentifier>
| 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, generateSecret |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationTokenSecretManager
public ApplicationTokenSecretManager()
- Default constructor
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.