@InterfaceAudience.Private public class AuthenticationTokenIdentifier extends org.apache.hadoop.security.token.TokenIdentifier
| Modifier and Type | Field and Description |
|---|---|
static org.apache.hadoop.io.Text |
AUTH_TOKEN_TYPE |
protected long |
expirationDate |
protected long |
issueDate |
protected int |
keyId |
protected long |
sequenceNumber |
protected String |
username |
| Constructor and Description |
|---|
AuthenticationTokenIdentifier() |
AuthenticationTokenIdentifier(String username) |
AuthenticationTokenIdentifier(String username,
int keyId,
long issueDate,
long expirationDate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
long |
getExpirationDate() |
long |
getIssueDate() |
int |
getKeyId() |
org.apache.hadoop.io.Text |
getKind() |
long |
getSequenceNumber() |
org.apache.hadoop.security.UserGroupInformation |
getUser() |
String |
getUsername() |
int |
hashCode() |
void |
readFields(DataInput in) |
byte[] |
toBytes() |
void |
write(DataOutput out) |
public static final org.apache.hadoop.io.Text AUTH_TOKEN_TYPE
protected String username
protected int keyId
protected long issueDate
protected long expirationDate
protected long sequenceNumber
public AuthenticationTokenIdentifier()
public AuthenticationTokenIdentifier(String username)
public AuthenticationTokenIdentifier(String username, int keyId, long issueDate, long expirationDate)
public org.apache.hadoop.io.Text getKind()
getKind in class org.apache.hadoop.security.token.TokenIdentifierpublic org.apache.hadoop.security.UserGroupInformation getUser()
getUser in class org.apache.hadoop.security.token.TokenIdentifierpublic String getUsername()
public int getKeyId()
public long getIssueDate()
public long getExpirationDate()
public long getSequenceNumber()
public byte[] toBytes()
public void write(DataOutput out) throws IOException
IOExceptionpublic void readFields(DataInput in) throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.