Class ClientToAMTokenIdentifier
java.lang.Object
org.apache.hadoop.security.token.TokenIdentifier
org.apache.hadoop.yarn.security.client.ClientToAMTokenIdentifier
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
@Public
@Evolving
public class ClientToAMTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientToAMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId id, String client) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.hadoop.yarn.api.records.ApplicationAttemptIdorg.apache.hadoop.io.TextgetKind()org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProtogetProto()org.apache.hadoop.security.UserGroupInformationgetUser()inthashCode()voidreadFields(DataInput in) toString()voidwrite(DataOutput out) Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier
getBytes, getTrackingId
-
Field Details
-
KIND_NAME
public static final org.apache.hadoop.io.Text KIND_NAME
-
-
Constructor Details
-
ClientToAMTokenIdentifier
public ClientToAMTokenIdentifier() -
ClientToAMTokenIdentifier
public ClientToAMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId id, String client)
-
-
Method Details
-
getApplicationAttemptID
public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptID() -
getClientName
-
getProto
public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto getProto() -
write
- Throws:
IOException
-
readFields
- Throws:
IOException
-
getKind
public org.apache.hadoop.io.Text getKind()- Specified by:
getKindin classorg.apache.hadoop.security.token.TokenIdentifier
-
getUser
public org.apache.hadoop.security.UserGroupInformation getUser()- Specified by:
getUserin classorg.apache.hadoop.security.token.TokenIdentifier
-
hashCode
public int hashCode() -
equals
-
toString
-