Class 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 Detail

      • delegate

        protected static final org.springframework.security.crypto.password.PasswordEncoder delegate
        The constant delegate.
    • Constructor Detail

      • LdaptivePasswordEncoder

        public LdaptivePasswordEncoder()
        Instantiates a new ldaptive password encoder.
      • LdaptivePasswordEncoder

        public LdaptivePasswordEncoder​(String label,
                                       String algorithm)
        Instantiates a new ldaptive password encoder.
        Parameters:
        label - the label
        algorithm - the algorithm
    • 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 interface org.springframework.security.crypto.password.PasswordEncoder
      • matches

        public boolean matches​(CharSequence rawPassword,
                               String encodedPassword)
        Specified by:
        matches in interface org.springframework.security.crypto.password.PasswordEncoder