public class PasswordEncoderFactories
extends java.lang.Object
PasswordEncoder
instancesModifier and Type | Method and Description |
---|---|
static PasswordEncoder |
createDelegatingPasswordEncoder()
Creates a
DelegatingPasswordEncoder with default mappings. |
public static PasswordEncoder createDelegatingPasswordEncoder()
DelegatingPasswordEncoder
with default mappings. Additional
mappings may be added and the encoding will be updated to conform with best
practices. However, due to the nature of DelegatingPasswordEncoder
the
updates should not impact users. The mappings current are:
BCryptPasswordEncoder
(Also used for encoding)LdapShaPasswordEncoder
Md4PasswordEncoder
new MessageDigestPasswordEncoder("MD5")
NoOpPasswordEncoder
Pbkdf2PasswordEncoder
SCryptPasswordEncoder
new MessageDigestPasswordEncoder("SHA-1")
new MessageDigestPasswordEncoder("SHA-256")
StandardPasswordEncoder
PasswordEncoder
to use