@InterfaceAudience.Public @InterfaceStability.Evolving public class ClientToAMTokenSecretManager extends BaseClientToAMTokenSecretManager
SecretManager
for AMs to validate Client-RM tokens issued to
clients by the RM using the underlying master-key shared by RM to the AMs on
their launch. All the methods are called by either Hadoop RPC or YARN, so
this class is strictly for the purpose of inherit/extend and register with
Hadoop RPC.SecretManager.InvalidToken
Constructor and Description |
---|
ClientToAMTokenSecretManager(ApplicationAttemptId applicationAttemptID,
byte[] key) |
Modifier and Type | Method and Description |
---|---|
SecretKey |
getMasterKey(ApplicationAttemptId applicationAttemptID) |
void |
setMasterKey(byte[] key) |
createIdentifier, createPassword, retrievePassword
checkAvailableForRead, createPassword, createSecretKey, generateSecret
public ClientToAMTokenSecretManager(ApplicationAttemptId applicationAttemptID, byte[] key)
public SecretKey getMasterKey(ApplicationAttemptId applicationAttemptID)
getMasterKey
in class BaseClientToAMTokenSecretManager
public void setMasterKey(byte[] key)
Copyright © 2013 Apache Software Foundation. All rights reserved.