public interface PasswordEncoder
BCryptPasswordEncoder.| Modifier and Type | Method and Description |
|---|---|
String |
encode(CharSequence rawPassword)
Encode the raw password.
|
boolean |
matches(CharSequence rawPassword,
String encodedPassword)
Verify the encoded password obtained from storage matches the submitted raw
password after it too is encoded.
|
default boolean |
upgradeEncoding(String encodedPassword)
Returns true if the encoded password should be encoded again for better security,
else false.
|
String encode(CharSequence rawPassword)
boolean matches(CharSequence rawPassword, String encodedPassword)
rawPassword - the raw password to encode and matchencodedPassword - the encoded password from storage to compare withdefault boolean upgradeEncoding(String encodedPassword)
encodedPassword - the encoded password to check