Class TokenPBImpl

java.lang.Object
org.apache.hadoop.yarn.api.records.Token
org.apache.hadoop.yarn.api.records.impl.pb.TokenPBImpl

@Private @Unstable public class TokenPBImpl extends org.apache.hadoop.yarn.api.records.Token
  • Constructor Details

    • TokenPBImpl

      public TokenPBImpl()
    • TokenPBImpl

      public TokenPBImpl(org.apache.hadoop.security.proto.SecurityProtos.TokenProto proto)
  • Method Details

    • getProto

      public org.apache.hadoop.security.proto.SecurityProtos.TokenProto getProto()
    • hashCode

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

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

      protected final ByteBuffer convertFromProtoFormat(org.apache.hadoop.thirdparty.protobuf.ByteString byteString)
    • convertToProtoFormat

      protected final org.apache.hadoop.thirdparty.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
    • getIdentifier

      public ByteBuffer getIdentifier()
      Specified by:
      getIdentifier in class org.apache.hadoop.yarn.api.records.Token
    • setIdentifier

      public void setIdentifier(ByteBuffer identifier)
      Specified by:
      setIdentifier in class org.apache.hadoop.yarn.api.records.Token
    • getPassword

      public ByteBuffer getPassword()
      Specified by:
      getPassword in class org.apache.hadoop.yarn.api.records.Token
    • setPassword

      public void setPassword(ByteBuffer password)
      Specified by:
      setPassword in class org.apache.hadoop.yarn.api.records.Token
    • getKind

      public String getKind()
      Specified by:
      getKind in class org.apache.hadoop.yarn.api.records.Token
    • setKind

      public void setKind(String kind)
      Specified by:
      setKind in class org.apache.hadoop.yarn.api.records.Token
    • getService

      public String getService()
      Specified by:
      getService in class org.apache.hadoop.yarn.api.records.Token
    • setService

      public void setService(String service)
      Specified by:
      setService in class org.apache.hadoop.yarn.api.records.Token
    • toString

      public String toString()
      Overrides:
      toString in class Object