Class NoOpPasswordEncoder
java.lang.Object
org.springframework.security.crypto.password.AbstractValidatingPasswordEncoder
org.springframework.security.crypto.password.NoOpPasswordEncoder
- All Implemented Interfaces:
PasswordEncoder
Deprecated.
This
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.-
Method Summary
Modifier and TypeMethodDescriptionprotected StringencodeNonNullPassword(String rawPassword) Deprecated.static PasswordEncoderDeprecated.Get the singletonNoOpPasswordEncoder.protected booleanmatchesNonNull(String rawPassword, String encodedPassword) Deprecated.Methods inherited from class org.springframework.security.crypto.password.AbstractValidatingPasswordEncoder
encode, matches, upgradeEncoding, upgradeEncodingNonNull
-
Method Details
-
encodeNonNullPassword
Deprecated.- Specified by:
encodeNonNullPasswordin classAbstractValidatingPasswordEncoder
-
matchesNonNull
Deprecated.- Specified by:
matchesNonNullin classAbstractValidatingPasswordEncoder
-
getInstance
Deprecated.Get the singletonNoOpPasswordEncoder.
-
DelegatingPasswordEncoderwhich supports password upgrades. There are no plans to remove this support. It is deprecated to indicate that this is a legacy implementation and using it is considered insecure.