Class PasswordValidator

java.lang.Object
com.logicaldoc.util.security.PasswordValidator

public class PasswordValidator extends Object
An utility class to validate the passwords
Since:
8.8.2
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • PasswordValidator

      public PasswordValidator(PasswordCriteria criteria, Properties messages)
      Constructor
      Parameters:
      criteria - minimum size of the password
      messages - optional map with error codes and messages
  • Method Details

    • validate

      public List<String> validate(String password)
      Validates a password
      Parameters:
      password - the password to check
      Returns:
      the list of error messages or empty in case of valid password