Class LdaptivePasswordEncoder
- java.lang.Object
-
- org.bremersee.security.core.userdetails.LdaptivePasswordEncoder
-
- All Implemented Interfaces:
org.springframework.security.crypto.password.PasswordEncoder
public class LdaptivePasswordEncoder extends Object implements org.springframework.security.crypto.password.PasswordEncoder
The ldaptive password encoder.- Author:
- Christian Bremer
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.springframework.security.crypto.password.PasswordEncoder
delegate
The constant delegate.
-
Constructor Summary
Constructors Constructor Description LdaptivePasswordEncoder()
Instantiates a new ldaptive password encoder.LdaptivePasswordEncoder(String label, String algorithm)
Instantiates a new ldaptive password encoder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
encode(CharSequence rawPassword)
boolean
matches(CharSequence rawPassword, String encodedPassword)
static LdaptivePasswordEncoder
plain()
Plain ldaptive password encoder.static LdaptivePasswordEncoder
plainWithNoLabel()
Plain with no label ldaptive password encoder.
-
-
-
Method Detail
-
plain
public static LdaptivePasswordEncoder plain()
Plain ldaptive password encoder.- Returns:
- the ldaptive password encoder
-
plainWithNoLabel
public static LdaptivePasswordEncoder plainWithNoLabel()
Plain with no label ldaptive password encoder.- Returns:
- the ldaptive password encoder
-
encode
public String encode(CharSequence rawPassword)
- Specified by:
encode
in interfaceorg.springframework.security.crypto.password.PasswordEncoder
-
matches
public boolean matches(CharSequence rawPassword, String encodedPassword)
- Specified by:
matches
in interfaceorg.springframework.security.crypto.password.PasswordEncoder
-
-