DelegatingPasswordEncoder which supports
password upgrades.@Deprecated public final class NoOpPasswordEncoder extends Object implements PasswordEncoder
PasswordEncoder is provided for legacy and testing purposes only and is
not considered secure.
A password encoder that does nothing. Useful for testing where working with plain text
passwords may be preferred.| Modifier and Type | Method and Description |
|---|---|
String |
encode(CharSequence rawPassword)
Deprecated.
Encode the raw password.
|
static PasswordEncoder |
getInstance()
Deprecated.
Get the singleton
NoOpPasswordEncoder. |
boolean |
matches(CharSequence rawPassword,
String encodedPassword)
Deprecated.
Verify the encoded password obtained from storage matches the submitted raw
password after it too is encoded.
|
public String encode(CharSequence rawPassword)
PasswordEncoderencode in interface PasswordEncoderpublic boolean matches(CharSequence rawPassword, String encodedPassword)
PasswordEncodermatches in interface PasswordEncoderrawPassword - the raw password to encode and matchencodedPassword - the encoded password from storage to compare withpublic static PasswordEncoder getInstance()
NoOpPasswordEncoder.