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 boolean
equals(Object obj)
long
getCreationDate()
long
getExpirationDate()
int
getKeyId()
int
hashCode()
void
readFields(DataInput in)
String
toString()
void
write(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:
write
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Throws:
IOException
-
-