org.apache.hadoop.hbase.security.token
Class AuthenticationKey

java.lang.Object
  extended by 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.


Constructor Summary
AuthenticationKey()
           
AuthenticationKey(int keyId, long expirationDate, SecretKey key)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getExpiration()
           
 int getKeyId()
           
 void readFields(DataInput in)
           
 void setExpiration(long timestamp)
           
 String toString()
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationKey

public AuthenticationKey()

AuthenticationKey

public AuthenticationKey(int keyId,
                         long expirationDate,
                         SecretKey key)
Method Detail

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 © 2015 The Apache Software Foundation. All Rights Reserved.