Class AuthenticationKey
java.lang.Object
org.apache.accumulo.server.security.delegation.AuthenticationKey
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
Represents a secret key used for signing and verifying authentication tokens by
AuthenticationTokenSecretManager
.-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationKey
(int keyId, long creationDate, long expirationDate, SecretKey key) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
long
int
getKeyId()
int
hashCode()
void
readFields
(DataInput in) toString()
void
write
(DataOutput out)
-
Constructor Details
-
AuthenticationKey
public AuthenticationKey() -
AuthenticationKey
-
-
Method Details
-
getKeyId
public int getKeyId() -
getCreationDate
public long getCreationDate() -
getExpirationDate
public long getExpirationDate() -
hashCode
public int 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
-