public interface SaltedHashService
| Modifier and Type | Method and Description |
|---|---|
String |
getSaltedHash(String password)
Computes a salted hash of given plaintext password suitable for storing in a database.
|
boolean |
validate(String password,
String saltedHash)
Checks whether given plaintext
password corresponds to the given saltedHash. |
String getSaltedHash(String password) throws SaltedHashException
SaltedHashExceptionboolean validate(String password, String saltedHash) throws SaltedHashException
password corresponds to the given saltedHash.password - saltedHash - true if the given password matches the given saltedHash; false otherwise.SaltedHashException - if the saltedHash cannot be parsed or if the hashing algorithm is not available.Copyright © 2016 JBoss by Red Hat. All Rights Reserved.