public interface PasswordEncryptor
PasswordEncryptor
provides the api to customize
the encryption of passwords.Modifier and Type | Method and Description |
---|---|
boolean |
check(String password,
String encrypted)
Returns true if the given plain text equals to the encrypted password.
|
String |
encrypt(String password)
Encrypt the given password
|
String |
hashAlgorithmName()
In order to distinguish which algorithm was used to hash the
password, it needs a unique id.
|
boolean check(String password, String encrypted)
password
- encrypted
- String hashAlgorithmName()
check(java.lang.String, java.lang.String)
.Copyright © 2022. All rights reserved.