Class IteratedSaltedHashPasswordSpec

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

public class IteratedSaltedHashPasswordSpec extends Object implements PasswordSpec
A PasswordSpec for a password represented by a hash with a salt and a iteration count or cost.
Author:
Pedro Igor
  • Constructor Details

    • IteratedSaltedHashPasswordSpec

      public IteratedSaltedHashPasswordSpec(byte[] hash, byte[] salt, int iterationCount)
      Construct a new instance.
      Parameters:
      hash - the password hash bytes
      salt - the salt bytes
      iterationCount - the iteration count
  • 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
    • getIterationCount

      public int getIterationCount()
      Get the iteration count.
      Returns:
      the iteration count
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object