@InterfaceAudience.Public @InterfaceStability.Evolving public class AMRMTokenIdentifier extends TokenIdentifier
| Constructor and Description | 
|---|
| AMRMTokenIdentifier() | 
| AMRMTokenIdentifier(ApplicationAttemptId appAttemptId,
                   int masterKeyId) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| int | getKeyId() | 
| Text | getKind()Get the token kind | 
| org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto | getProto() | 
| UserGroupInformation | getUser()Get the Ugi with the username encoded in the token identifier | 
| int | hashCode() | 
| void | readFields(DataInput in)Deserialize the fields of this object from  in. | 
| String | toString() | 
| void | write(DataOutput out)Serialize the fields of this object to  out. | 
getBytes, getTrackingIdpublic static final Text KIND_NAME
public AMRMTokenIdentifier()
public AMRMTokenIdentifier(ApplicationAttemptId appAttemptId, int masterKeyId)
public void write(DataOutput out) throws IOException
Writableout.out - DataOuput to serialize this object into.IOException - any other problem for write.public void readFields(DataInput in) throws IOException
Writablein.  
 
 For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.IOException - any other problem for readFields.public Text getKind()
TokenIdentifiergetKind in class TokenIdentifierpublic UserGroupInformation getUser()
TokenIdentifiergetUser in class TokenIdentifierpublic int getKeyId()
public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto getProto()
Copyright © 2023 Apache Software Foundation. All rights reserved.