@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Evolving public abstract class AbstractDelegationTokenIdentifier extends TokenIdentifier
| Constructor and Description |
|---|
AbstractDelegationTokenIdentifier() |
AbstractDelegationTokenIdentifier(Text owner,
Text renewer,
Text realUser) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getIssueDate() |
abstract Text |
getKind()
Get the token kind
|
int |
getMasterKeyId() |
long |
getMaxDate() |
Text |
getOwner() |
Text |
getRealUser() |
Text |
getRenewer() |
int |
getSequenceNumber() |
UserGroupInformation |
getUser()
Get the username encoded in the token identifier
|
int |
hashCode() |
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
setIssueDate(long issueDate) |
void |
setMasterKeyId(int newId) |
void |
setMaxDate(long maxDate) |
void |
setSequenceNumber(int seqNum) |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
getBytes, getTrackingIdpublic abstract Text getKind()
TokenIdentifiergetKind in class TokenIdentifierpublic UserGroupInformation getUser()
getUser in class TokenIdentifierpublic Text getOwner()
public Text getRenewer()
public Text getRealUser()
public void setIssueDate(long issueDate)
public long getIssueDate()
public void setMaxDate(long maxDate)
public long getMaxDate()
public void setSequenceNumber(int seqNum)
public int getSequenceNumber()
public void setMasterKeyId(int newId)
public int getMasterKeyId()
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 void write(DataOutput out) throws IOException
Writableout.out - DataOuput to serialize this object into.IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.