Package eu.webtoolkit.jwt.auth
Class PasswordHash
java.lang.Object
eu.webtoolkit.jwt.auth.PasswordHash
A password hash.
This combines the information for interpreting a hashed password:
- the hash value
- the salt used
- the hashing function used
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.PasswordHash
(String function, String salt, String value) Constructor. -
Method Summary
-
Constructor Details
-
PasswordHash
public PasswordHash()Default constructor.Creates an empty password hash, i.e. with empty function, salt and value.
-
PasswordHash
Constructor.
-
-
Method Details
-
isEmpty
public boolean isEmpty()Returns whether the password is empty. -
getFunction
Returns the function identifier. -
getSalt
Returns the salt. -
getValue
Returns the hash value.
-