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