Class LDAPPasswordEncoderService

    • Constructor Detail

      • LDAPPasswordEncoderService

        public LDAPPasswordEncoderService()
    • Method Detail

      • isValid

        public boolean isValid​(UserModel user,
                               java.lang.String plainPassword)
        Description copied from interface: PasswordEncoderService
        Checks if the encoded password (stored in the user) matches the given plain text password. For this the plain password will be encoded and compared with the user's encoded password.
        Specified by:
        isValid in interface PasswordEncoderService
        Overrides:
        isValid in class DefaulPasswordEncoderService
        Parameters:
        user - the user contains the encoded password and the (password) encoding
        plainPassword - the plain text password
        Returns:
        true if the encoded passwords matches, false otherwise