Class PasswordPolicyValidator

java.lang.Object
org.exoplatform.webui.form.validator.AbstractValidator
org.exoplatform.webui.form.validator.PasswordPolicyValidator
All Implemented Interfaces:
Serializable, Validator

public class PasswordPolicyValidator extends AbstractValidator
This validator checks the password against a policy named "passwordpolicy" from the validator configuration. If no such entry is available, it validates that the password has a minimum of 6 and maximum of 30 chars, which was the GateIn behavior before the introduction of this validator. The entries in the configuration file should look like this:
      gatein.validators.passwordpolicy.length.min=5
      gatein.validators.passwordpolicy.length.max=50
      gatein.validators.passwordpolicy.regexp=...
      gatein.validators.passwordpolicy.format.message=Minimum 5 chars, max 50 chars, upper/lower case required, number required.
 
Author:
Juraci Paixão Kröhling
See Also: