org.apache.hadoop.hbase.security.token
Class AuthenticationKey
java.lang.Object
org.apache.hadoop.hbase.security.token.AuthenticationKey
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
public class AuthenticationKey
- extends Object
- implements org.apache.hadoop.io.Writable
Represents a secret key used for signing and verifying authentication tokens
by AuthenticationTokenSecretManager
.
AuthenticationKey
public AuthenticationKey()
AuthenticationKey
public AuthenticationKey(int keyId,
long expirationDate,
SecretKey key)
getKeyId
public int getKeyId()
getExpiration
public long getExpiration()
setExpiration
public void setExpiration(long timestamp)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
write
public void write(DataOutput out)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
readFields
public void readFields(DataInput in)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.