com.arsdigita.ui.login
Class PasswordValidationListener

java.lang.Object
  extended bycom.arsdigita.bebop.parameters.GlobalizedParameterListener
      extended bycom.arsdigita.bebop.parameters.NotNullValidationListener
          extended bycom.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.
 
Fields inherited from class com.arsdigita.bebop.parameters.NotNullValidationListener
DEFAULT, versionId
 
Fields inherited from interface com.arsdigita.globalization.Globalized
DATE_DISPLAY_FORMAT, TIME_DISPLAY_FORMAT
 
Constructor Summary
PasswordValidationListener()
           
PasswordValidationListener(String label)
           
 
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 com.arsdigita.bebop.parameters.GlobalizedParameterListener
getBundleBaseName, getError, setError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PasswordValidationListener

public PasswordValidationListener()

PasswordValidationListener

public PasswordValidationListener(String label)
Method Detail

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