@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) |
(package private) void |
setExpirationDate(long timestamp) |
(package private) void |
setIssueDate(long timestamp) |
(package private) void |
setKeyId(int id) |
(package private) void |
setSequenceNumber(long seq) |
(package private) void |
setUsername(String name) |
byte[] |
toBytes() |
void |
write(DataOutput out) |
public static final org.apache.hadoop.io.Text AUTH_TOKEN_TYPE
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.TokenIdentifier
public org.apache.hadoop.security.UserGroupInformation getUser()
getUser
in class org.apache.hadoop.security.token.TokenIdentifier
public String getUsername()
void setUsername(String name)
public int getKeyId()
void setKeyId(int id)
public long getIssueDate()
void setIssueDate(long timestamp)
public long getExpirationDate()
void setExpirationDate(long timestamp)
public long getSequenceNumber()
void setSequenceNumber(long seq)
public byte[] toBytes()
public void write(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) throws IOException
IOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.