Class IteratedSaltedHashPasswordSpec
java.lang.Object
org.wildfly.security.password.spec.IteratedSaltedHashPasswordSpec
- All Implemented Interfaces:
KeySpec,PasswordSpec
A
PasswordSpec for a password represented by a hash with a salt and a iteration count or cost.- Author:
- Pedro Igor
-
Constructor Summary
ConstructorsConstructorDescriptionIteratedSaltedHashPasswordSpec(byte[] hash, byte[] salt, int iterationCount) Construct a new instance. -
Method Summary
-
Constructor Details
-
IteratedSaltedHashPasswordSpec
public IteratedSaltedHashPasswordSpec(byte[] hash, byte[] salt, int iterationCount) Construct a new instance.- Parameters:
hash- the password hash bytessalt- the salt bytesiterationCount- 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
-
hashCode
public int hashCode()
-