Class 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 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • readFields

        public void readFields​(DataInput in)
                        throws IOException
        Specified by:
        readFields in interface org.apache.hadoop.io.Writable
        Throws:
        IOException