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 by AuthenticationTokenSecretManager.
  • Constructor Details

    • AuthenticationKey

      public AuthenticationKey()
    • AuthenticationKey

      public AuthenticationKey(int keyId, long creationDate, long expirationDate, SecretKey key)
  • Method Details

    • getKeyId

      public int getKeyId()
    • getCreationDate

      public long getCreationDate()
    • getExpirationDate

      public long getExpirationDate()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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