Class IteratedSaltedPasswordAlgorithmSpec

java.lang.Object
org.wildfly.security.password.spec.IteratedSaltedPasswordAlgorithmSpec
All Implemented Interfaces:
Serializable, AlgorithmParameterSpec

public final class IteratedSaltedPasswordAlgorithmSpec extends Object implements AlgorithmParameterSpec, Serializable
Algorithm parameter specification for common hashed password types.
Author:
David M. Lloyd
See Also:
  • Constructor Details

    • IteratedSaltedPasswordAlgorithmSpec

      public IteratedSaltedPasswordAlgorithmSpec(int iterationCount, byte[] salt)
      Construct a new instance.
      Parameters:
      iterationCount - the iteration count
      salt - the salt bytes
  • Method Details

    • getIterationCount

      public int getIterationCount()
      Get the iteration count.
      Returns:
      the iteration count
    • 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