com.arsdigita.ui.login
Class PasswordValidationListener
java.lang.Object
com.arsdigita.bebop.parameters.GlobalizedParameterListener
com.arsdigita.bebop.parameters.NotNullValidationListener
com.arsdigita.ui.login.PasswordValidationListener
- All Implemented Interfaces:
- EventListener, Globalized, ParameterListener
- public class PasswordValidationListener
- extends NotNullValidationListener
A NotNullValidationListener that checks whether the string value of a
parameter is a strong password.
- Author:
- Sameer Ajmani
Field Summary |
static int |
MIN_LENGTH
Minimum length for passwords. |
static int |
MIN_TYPES
Minimum number of character types for passwords. |
Method Summary |
void |
validate(ParameterEvent e)
Checks whether the string value of the parameter meets minimum-length
and composition requirements for strong passwords. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIN_LENGTH
public static final int MIN_LENGTH
- Minimum length for passwords.
- See Also:
- Constant Field Values
MIN_TYPES
public static final int MIN_TYPES
- Minimum number of character types for passwords. Valid values are on
range [1,4].
- See Also:
- Constant Field Values
PasswordValidationListener
public PasswordValidationListener()
PasswordValidationListener
public PasswordValidationListener(String label)
validate
public void validate(ParameterEvent e)
- Checks whether the string value of the parameter meets minimum-length
and composition requirements for strong passwords.
- Specified by:
validate
in interface ParameterListener
- Overrides:
validate
in class NotNullValidationListener
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC