org.apache.hadoop.hbase.security.token
Class AuthenticationTokenIdentifier
java.lang.Object
org.apache.hadoop.security.token.TokenIdentifier
org.apache.hadoop.hbase.security.token.AuthenticationTokenIdentifier
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
@InterfaceAudience.Private
public class AuthenticationTokenIdentifier
- extends org.apache.hadoop.security.token.TokenIdentifier
Represents the identity information stored in an HBase authentication token.
Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier |
getBytes, getTrackingId |
AUTH_TOKEN_TYPE
public static final org.apache.hadoop.io.Text AUTH_TOKEN_TYPE
username
protected String username
keyId
protected int keyId
issueDate
protected long issueDate
expirationDate
protected long expirationDate
sequenceNumber
protected long sequenceNumber
AuthenticationTokenIdentifier
public AuthenticationTokenIdentifier()
AuthenticationTokenIdentifier
public AuthenticationTokenIdentifier(String username)
AuthenticationTokenIdentifier
public AuthenticationTokenIdentifier(String username,
int keyId,
long issueDate,
long expirationDate)
getKind
public org.apache.hadoop.io.Text getKind()
- Specified by:
getKind
in class org.apache.hadoop.security.token.TokenIdentifier
getUser
public org.apache.hadoop.security.UserGroupInformation getUser()
- Specified by:
getUser
in class org.apache.hadoop.security.token.TokenIdentifier
getUsername
public String getUsername()
getKeyId
public int getKeyId()
getIssueDate
public long getIssueDate()
getExpirationDate
public long getExpirationDate()
getSequenceNumber
public long getSequenceNumber()
toBytes
public byte[] toBytes()
write
public void write(DataOutput out)
throws IOException
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Throws:
IOException
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.