Package io.goobi.viewer.faces.validators
Class PasswordValidator
java.lang.Object
io.goobi.viewer.faces.validators.PasswordValidator
- All Implemented Interfaces:
Validator<String>,EventListener
Syntax validator for passwords.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(FacesContext context, UIComponent component, String value) static booleanvalidatePassword(String password) validatePassword.
-
Constructor Details
-
PasswordValidator
public PasswordValidator()
-
-
Method Details
-
validate
public void validate(FacesContext context, UIComponent component, String value) throws ValidatorException - Specified by:
validatein interfaceValidator<String>- Throws:
ValidatorException
-
validatePassword
validatePassword.- Parameters:
password- plain-text password to validate for length constraints- Returns:
- true if the given password is empty (no update) or meets the length requirements, false otherwise
-