Class SaltedHashPasswordSpec
java.lang.Object
org.wildfly.security.password.spec.SaltedHashPasswordSpec
- All Implemented Interfaces:
KeySpec, PasswordSpec
A
PasswordSpec for a password represented by a hash with a salt.- Author:
- Pedro Igor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SaltedHashPasswordSpec
public SaltedHashPasswordSpec(byte[] hash, byte[] salt) Construct a new instance.- Parameters:
hash- the password hash bytessalt- the salt bytes
-
-
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
-
equals
-
hashCode
-