Class AuthenticationKey
java.lang.Object
org.apache.hadoop.hbase.security.token.AuthenticationKey
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
Represents a secret key used for signing and verifying authentication tokens by
AuthenticationTokenSecretManager
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
long
(package private) SecretKey
getKey()
int
getKeyId()
int
hashCode()
void
readFields
(DataInput in) void
setExpiration
(long timestamp) toString()
void
write
(DataOutput out)
-
Field Details
-
id
-
expirationDate
-
secret
-
-
Constructor Details
-
AuthenticationKey
public AuthenticationKey() -
AuthenticationKey
-
-
Method Details
-
getKeyId
-
getExpiration
-
setExpiration
-
getKey
-
hashCode
-
equals
-
toString
-
write
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
readFields
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-