Class IteratedHashPasswordSpec

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

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

    • IteratedHashPasswordSpec

      public IteratedHashPasswordSpec(byte[] hash, int iterationCount)
      Construct new instance.
      Parameters:
      hash - the password hash
      iterationCount - the iteration count or cost
  • Method Details

    • getHash

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class Object