Class PasswordValidator

java.lang.Object
io.goobi.viewer.faces.validators.PasswordValidator
All Implemented Interfaces:
EventListener, javax.faces.validator.Validator<String>

public class PasswordValidator extends Object implements javax.faces.validator.Validator<String>
Syntax validator for passwords.
  • Constructor Details

    • PasswordValidator

      public PasswordValidator()
  • Method Details

    • validate

      public void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) throws javax.faces.validator.ValidatorException
      Specified by:
      validate in interface javax.faces.validator.Validator<String>
      Throws:
      javax.faces.validator.ValidatorException
    • validatePassword

      public static boolean validatePassword(String password)

      validatePassword.

      Parameters:
      password - a String object.
      Returns:
      a boolean.