@Public @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.| Constructor | Description |
|---|---|
ClientToAMTokenSecretManager(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID,
byte[] key) |
| Modifier and Type | Method | Description |
|---|---|---|
javax.crypto.SecretKey |
getMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID) |
|
byte[] |
retrievePassword(ClientToAMTokenIdentifier identifier) |
|
void |
setMasterKey(byte[] key) |
createIdentifier, createPasswordpublic ClientToAMTokenSecretManager(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID,
byte[] key)
public byte[] retrievePassword(ClientToAMTokenIdentifier identifier) throws org.apache.hadoop.security.token.SecretManager.InvalidToken
retrievePassword in class BaseClientToAMTokenSecretManagerorg.apache.hadoop.security.token.SecretManager.InvalidTokenpublic javax.crypto.SecretKey getMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
getMasterKey in class BaseClientToAMTokenSecretManagerpublic void setMasterKey(byte[] key)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.