public interface PasswordEncoder
BCryptPasswordEncoder
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
encode(java.lang.CharSequence rawPassword)
Encode the raw password.
|
boolean |
matches(java.lang.CharSequence rawPassword,
java.lang.String encodedPassword)
Verify the encoded password obtained from storage matches the submitted raw
password after it too is encoded.
|
java.lang.String encode(java.lang.CharSequence rawPassword)
boolean matches(java.lang.CharSequence rawPassword, java.lang.String encodedPassword)
rawPassword
- the raw password to encode and matchencodedPassword
- the encoded password from storage to compare with