Class SaltedHashPasswordSpec

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

public class SaltedHashPasswordSpec extends Object implements PasswordSpec
A PasswordSpec for a password represented by a hash with a salt.
Author:
Pedro Igor
  • Constructor Details

    • SaltedHashPasswordSpec

      public SaltedHashPasswordSpec(byte[] hash, byte[] salt)
      Construct a new instance.
      Parameters:
      hash - the password hash bytes
      salt - the salt bytes
  • Method Details

    • getHash

      public byte[] getHash()
      Get a password hash bytes.
      Returns:
      the password hash
    • getSalt

      public byte[] getSalt()
      Get the salt bytes.
      Returns:
      the salt bytes
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object