|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.security.token.TokenIdentifier
org.apache.hadoop.yarn.security.AMRMTokenIdentifier
@InterfaceAudience.Public @InterfaceStability.Evolving public class AMRMTokenIdentifier
AMRMTokenIdentifier is the TokenIdentifier to be used by ApplicationMasters to authenticate to the ResourceManager.
| Field Summary | |
|---|---|
static Text |
KIND_NAME
|
| Constructor Summary | |
|---|---|
AMRMTokenIdentifier()
|
|
AMRMTokenIdentifier(ApplicationAttemptId appAttemptId,
int masterKeyId)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
int |
getKeyId()
|
Text |
getKind()
Get the token kind |
org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto |
getProto()
|
org.apache.hadoop.security.UserGroupInformation |
getUser()
Get the Ugi with the username encoded in the token identifier |
int |
hashCode()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in. |
String |
toString()
|
void |
write(DataOutput out)
Serialize the fields of this object to 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 |
|---|
public static final Text KIND_NAME
| Constructor Detail |
|---|
public AMRMTokenIdentifier()
public AMRMTokenIdentifier(ApplicationAttemptId appAttemptId,
int masterKeyId)
| Method Detail |
|---|
public void write(DataOutput out)
throws IOException
Writableout.
out - DataOuput to serialize this object into.
IOException
public void readFields(DataInput in)
throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in - DataInput to deseriablize this object from.
IOExceptionpublic Text getKind()
org.apache.hadoop.security.token.TokenIdentifier
getKind in class org.apache.hadoop.security.token.TokenIdentifierpublic org.apache.hadoop.security.UserGroupInformation getUser()
org.apache.hadoop.security.token.TokenIdentifier
getUser in class org.apache.hadoop.security.token.TokenIdentifierpublic int getKeyId()
public org.apache.hadoop.yarn.proto.YarnSecurityTokenProtos.AMRMTokenIdentifierProto getProto()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||