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
FieldsModifier and TypeFieldDescriptionstatic final org.apache.hadoop.io.Textprotected longprotected longprotected intprotected longprotected String -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationTokenIdentifier(String username) AuthenticationTokenIdentifier(String username, int keyId, long issueDate, long expirationDate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglongintgetKeyId()org.apache.hadoop.io.TextgetKind()longorg.apache.hadoop.security.UserGroupInformationgetUser()inthashCode()voidreadFields(DataInput in) (package private) voidsetExpirationDate(long timestamp) (package private) voidsetIssueDate(long timestamp) (package private) voidsetKeyId(int id) (package private) voidsetSequenceNumber(long seq) (package private) voidsetUsername(String name) byte[]toBytes()toString()voidwrite(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:
getKindin classorg.apache.hadoop.security.token.TokenIdentifier
-
getUser
- Specified by:
getUserin 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
-