Class AuthenticationKey
- java.lang.Object
-
- org.apache.accumulo.server.security.delegation.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 byAuthenticationTokenSecretManager.
-
-
Constructor Summary
Constructors Constructor Description AuthenticationKey()AuthenticationKey(int keyId, long creationDate, long expirationDate, SecretKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetCreationDate()longgetExpirationDate()intgetKeyId()inthashCode()voidreadFields(DataInput in)StringtoString()voidwrite(DataOutput out)
-
-
-
Constructor Detail
-
AuthenticationKey
public AuthenticationKey()
-
AuthenticationKey
public AuthenticationKey(int keyId, long creationDate, long expirationDate, SecretKey key)
-
-
Method Detail
-
getKeyId
public int getKeyId()
-
getCreationDate
public long getCreationDate()
-
getExpirationDate
public long getExpirationDate()
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Throws:
IOException
-
-