@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.コンストラクタと説明 |
---|
ClientToAMTokenSecretManager(ApplicationAttemptId applicationAttemptID,
byte[] key) |
修飾子とタイプ | メソッドと説明 |
---|---|
SecretKey |
getMasterKey(ApplicationAttemptId applicationAttemptID) |
byte[] |
retrievePassword(ClientToAMTokenIdentifier identifier)
Retrieve the password for the given token identifier.
|
void |
setMasterKey(byte[] key) |
checkAvailableForRead, createIdentifier, createPassword, createPassword, createSecretKey, generateSecret, retriableRetrievePassword
public ClientToAMTokenSecretManager(ApplicationAttemptId applicationAttemptID, byte[] key)
public byte[] retrievePassword(ClientToAMTokenIdentifier identifier) throws org.apache.hadoop.security.token.SecretManager.InvalidToken
SecretManager
identifier
- the identifier to validateorg.apache.hadoop.security.token.SecretManager.InvalidToken
- the token was invalidpublic SecretKey getMasterKey(ApplicationAttemptId applicationAttemptID)
public void setMasterKey(byte[] key)
Copyright © 2016 Apache Software Foundation. All rights reserved.