Class HashPasswordSpec

java.lang.Object
org.wildfly.security.password.spec.HashPasswordSpec
All Implemented Interfaces:
KeySpec, PasswordSpec

public final class HashPasswordSpec extends Object implements PasswordSpec
A password specification for a password represented by a hash.
Author:
David M. Lloyd
  • Constructor Details

    • HashPasswordSpec

      public HashPasswordSpec(byte[] digest)
      Construct new instance.
      Parameters:
      digest - the password hash
  • Method Details

    • getDigest

      public byte[] getDigest()
      Get a password hash.
      Returns:
      the password hash
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object