@InterfaceAudience.Public @InterfaceStability.Evolving public class AMRMTokenIdentifier extends org.apache.hadoop.security.token.TokenIdentifier
Constructor and Description |
---|
AMRMTokenIdentifier() |
AMRMTokenIdentifier(ApplicationAttemptId appAttemptId) |
AMRMTokenIdentifier(ApplicationAttemptId appAttemptId,
int masterKeyId) |
Modifier and Type | Method and Description |
---|---|
int |
getKeyId() |
Text |
getKind()
Get the token kind
|
org.apache.hadoop.security.UserGroupInformation |
getUser()
Get the Ugi with the username encoded in the token identifier
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in . |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public AMRMTokenIdentifier()
public AMRMTokenIdentifier(ApplicationAttemptId appAttemptId)
public AMRMTokenIdentifier(ApplicationAttemptId appAttemptId, int masterKeyId)
public void write(DataOutput out) throws IOException
Writable
out
.out
- DataOuput
to serialize this object into.IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
in
- DataInput
to deseriablize this object from.IOException
public Text getKind()
org.apache.hadoop.security.token.TokenIdentifier
getKind
in class org.apache.hadoop.security.token.TokenIdentifier
public org.apache.hadoop.security.UserGroupInformation getUser()
org.apache.hadoop.security.token.TokenIdentifier
getUser
in class org.apache.hadoop.security.token.TokenIdentifier
public int getKeyId()
Copyright © 2021 Apache Software Foundation. All Rights Reserved.