test.check
Class MyPasswordStrengthChecker

java.lang.Object
  extended by test.check.MyPasswordStrengthChecker
All Implemented Interfaces:
PasswordStrengthChecker

public class MyPasswordStrengthChecker
extends java.lang.Object
implements PasswordStrengthChecker


Constructor Summary
MyPasswordStrengthChecker()
           
 
Method Summary
 java.lang.String getDescription(LafConstants.PasswordStrength strength)
          Returns the description of the password strength.
 LafConstants.PasswordStrength getStrength(char[] password)
          Computes the strength of the specified password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPasswordStrengthChecker

public MyPasswordStrengthChecker()
Method Detail

getStrength

public LafConstants.PasswordStrength getStrength(char[] password)
Description copied from interface: PasswordStrengthChecker
Computes the strength of the specified password.

Specified by:
getStrength in interface PasswordStrengthChecker
Parameters:
password - Password.
Returns:
Password strength.

getDescription

public java.lang.String getDescription(LafConstants.PasswordStrength strength)
Description copied from interface: PasswordStrengthChecker
Returns the description of the password strength. The returned value can contain HTML constructs and will be used as popup text on the strength-check enabled password fields.

Specified by:
getDescription in interface PasswordStrengthChecker
Parameters:
strength - Password strength.
Returns:
The description of the specified password strength.