Class NMTokenIdentifier

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

@Public @Evolving public class NMTokenIdentifier extends org.apache.hadoop.security.token.TokenIdentifier
  • Field Details

    • KIND

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

    • NMTokenIdentifier

      public NMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId, org.apache.hadoop.yarn.api.records.NodeId nodeId, String applicationSubmitter, int masterKeyId)
    • NMTokenIdentifier

      public NMTokenIdentifier()
      Default constructor needed by RPC/Secret manager
  • Method Details

    • getApplicationAttemptId

      public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptId()
    • getNodeId

      public org.apache.hadoop.yarn.api.records.NodeId getNodeId()
    • getApplicationSubmitter

      public String getApplicationSubmitter()
    • getKeyId

      public int getKeyId()
    • 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
    • getProto

      public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.NMTokenIdentifierProto 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