Class PasswordEncoderFactories
- java.lang.Object
-
- org.springframework.security.crypto.factory.PasswordEncoderFactories
-
public final class PasswordEncoderFactories extends java.lang.Object
Used for creatingPasswordEncoder
instances- Since:
- 5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PasswordEncoder
createDelegatingPasswordEncoder()
Creates aDelegatingPasswordEncoder
with default mappings.
-
-
-
Method Detail
-
createDelegatingPasswordEncoder
public static PasswordEncoder createDelegatingPasswordEncoder()
Creates aDelegatingPasswordEncoder
with default mappings. Additional mappings may be added and the encoding will be updated to conform with best practices. However, due to the nature ofDelegatingPasswordEncoder
the updates should not impact users. The mappings current are:- bcrypt -
BCryptPasswordEncoder
(Also used for encoding) - ldap -
LdapShaPasswordEncoder
- MD4 -
Md4PasswordEncoder
- MD5 -
new MessageDigestPasswordEncoder("MD5")
- noop -
NoOpPasswordEncoder
- pbkdf2 -
Pbkdf2PasswordEncoder
- scrypt -
SCryptPasswordEncoder
- SHA-1 -
new MessageDigestPasswordEncoder("SHA-1")
- SHA-256 -
new MessageDigestPasswordEncoder("SHA-256")
- sha256 -
StandardPasswordEncoder
- argon2 -
Argon2PasswordEncoder
- Returns:
- the
PasswordEncoder
to use
- bcrypt -
-
-