Class AMRMTokenIdentifier

java.lang.Object
org.apache.hadoop.security.token.TokenIdentifier
org.apache.hadoop.yarn.security.AMRMTokenIdentifier
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@Public @Evolving public class AMRMTokenIdentifier extends org.apache.hadoop.security.token.TokenIdentifier
AMRMTokenIdentifier is the TokenIdentifier to be used by ApplicationMasters to authenticate to the ResourceManager.
  • Field Details

    • KIND_NAME

      public static final org.apache.hadoop.io.Text KIND_NAME
  • Constructor Details

    • AMRMTokenIdentifier

      public AMRMTokenIdentifier()
    • AMRMTokenIdentifier

      public AMRMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, int masterKeyId)
  • Method Details

    • getApplicationAttemptId

      @Private public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
    • write

      public void write(DataOutput out) throws IOException
      Throws:
      IOException
    • readFields

      public void readFields(DataInput in) throws IOException
      Throws:
      IOException
    • getKind

      public org.apache.hadoop.io.Text getKind()
      Specified by:
      getKind in class org.apache.hadoop.security.token.TokenIdentifier
    • getUser

      public org.apache.hadoop.security.UserGroupInformation getUser()
      Specified by:
      getUser in class org.apache.hadoop.security.token.TokenIdentifier
    • getKeyId

      public int getKeyId()
    • getProto

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto getProto()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object