org.apache.hadoop.yarn.security.client
Class ClientToAMTokenIdentifier

java.lang.Object
  extended by org.apache.hadoop.security.token.TokenIdentifier
      extended by org.apache.hadoop.yarn.security.client.ClientToAMTokenIdentifier
All Implemented Interfaces:
org.apache.hadoop.io.Writable

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class ClientToAMTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier


Field Summary
static org.apache.hadoop.io.Text KIND_NAME
           
 
Constructor Summary
ClientToAMTokenIdentifier()
           
ClientToAMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId id, String client)
           
 
Method Summary
 boolean equals(Object other)
           
 org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptID()
           
 String getClientName()
           
 org.apache.hadoop.io.Text getKind()
           
 YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto getProto()
           
 org.apache.hadoop.security.UserGroupInformation getUser()
           
 int hashCode()
           
 void readFields(DataInput in)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier
getBytes, getTrackingId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KIND_NAME

public static final org.apache.hadoop.io.Text KIND_NAME
Constructor Detail

ClientToAMTokenIdentifier

public ClientToAMTokenIdentifier()

ClientToAMTokenIdentifier

public ClientToAMTokenIdentifier(org.apache.hadoop.yarn.api.records.ApplicationAttemptId id,
                                 String client)
Method Detail

getApplicationAttemptID

public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getApplicationAttemptID()

getClientName

public String getClientName()

getProto

public YarnSecurityTokenProtos.ClientToAMTokenIdentifierProto getProto()

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

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.