Package com.netscape.cms.password
Class PasswordChecker
java.lang.Object
com.netscape.cms.password.PasswordChecker
This class checks the given password if it meets the specific requirements.
For example, it can also specify the format of the password which has to
be 8 characters long and must be in alphanumeric.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a reason if the password doesn't meet the quality requirement.boolean
isGoodPassword
(String pwd) Returns true if the given password meets the quality requirement; otherwise returns false.
-
Field Details
-
MIN_LEN
public static final int MIN_LEN- See Also:
-
-
Constructor Details
-
PasswordChecker
public PasswordChecker()Default constructor.
-
-
Method Details
-
isGoodPassword
Returns true if the given password meets the quality requirement; otherwise returns false.- Parameters:
pwd
- The given password being checked.- Returns:
- true if the password meets the quality requirement; otherwise returns false.
-
getReason
Returns a reason if the password doesn't meet the quality requirement.- Parameters:
pwd
- the given password- Returns:
- string as a reason if the password quality requirement is not met.
-