Class PasswordValidation

java.lang.Object
io.jmix.securityflowui.password.PasswordValidation

@Component("sec_PasswordValidation") public class PasswordValidation extends Object
Runs all existing PasswordValidators and returns the list of validation errors.
See Also:
  • Field Details

  • Constructor Details

    • PasswordValidation

      public PasswordValidation()
  • Method Details

    • setPasswordValidators

      @Autowired(required=false) public void setPasswordValidators(List<PasswordValidator> passwordValidators)
    • validate

      public List<String> validate(Object user, String password)
      Runs all existing PasswordValidators.
      Parameters:
      user - user entity
      password - password to validate
      Returns:
      list of validation error messages, or empty list if there were no errors