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
@Private
public class AuthenticationTokenIdentifier
extends org.apache.hadoop.security.token.TokenIdentifier
Represents the identity information stored in an HBase authentication token.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.apache.hadoop.io.Text
protected long
protected long
protected int
protected long
protected String
-
Constructor Summary
ConstructorDescriptionAuthenticationTokenIdentifier
(String username) AuthenticationTokenIdentifier
(String username, int keyId, long issueDate, long expirationDate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
int
getKeyId()
org.apache.hadoop.io.Text
getKind()
long
org.apache.hadoop.security.UserGroupInformation
getUser()
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()
toString()
void
write
(DataOutput out) Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier
getBytes, getTrackingId
-
Field Details
-
AUTH_TOKEN_TYPE
-
username
-
keyId
-
issueDate
-
expirationDate
-
sequenceNumber
-
-
Constructor Details
-
AuthenticationTokenIdentifier
public AuthenticationTokenIdentifier() -
AuthenticationTokenIdentifier
-
AuthenticationTokenIdentifier
public AuthenticationTokenIdentifier(String username, int keyId, long issueDate, long expirationDate)
-
-
Method Details
-
getKind
- Specified by:
getKind
in classorg.apache.hadoop.security.token.TokenIdentifier
-
getUser
- Specified by:
getUser
in classorg.apache.hadoop.security.token.TokenIdentifier
-
getUsername
-
setUsername
-
getKeyId
-
setKeyId
-
getIssueDate
-
setIssueDate
-
getExpirationDate
-
setExpirationDate
-
getSequenceNumber
-
setSequenceNumber
-
toBytes
-
write
- Throws:
IOException
-
readFields
- Throws:
IOException
-
equals
-
hashCode
-
toString
-