|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.cms.password.PasswordChecker
public class 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 | |
|---|---|
static int |
MIN_LEN
|
| Constructor Summary | |
|---|---|
PasswordChecker()
Default constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getConfigReason(java.lang.String mPassword)
Returns a reason if the password doesnt meet the quality requirement. |
java.lang.String |
getReason(java.lang.String mPassword)
Returns a reason if the password doesnt meet the quality requirement. |
boolean |
isGoodConfigPassword(java.lang.String mPassword)
Check if the password meets the quality requirement |
boolean |
isGoodPassword(java.lang.String mPassword)
Returns true if the given password meets the quality requirement; otherwise returns false. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIN_LEN
| Constructor Detail |
|---|
public PasswordChecker()
| Method Detail |
|---|
public boolean isGoodConfigPassword(java.lang.String mPassword)
IConfigPasswordCheck
isGoodConfigPassword in interface IConfigPasswordCheckmPassword - the given password
public java.lang.String getConfigReason(java.lang.String mPassword)
IConfigPasswordCheck
getConfigReason in interface IConfigPasswordCheckmPassword - the given password
public boolean isGoodPassword(java.lang.String mPassword)
isGoodPassword in interface IPasswordCheckmPassword - The given password being checked.
public java.lang.String getReason(java.lang.String mPassword)
getReason in interface IPasswordCheckmPassword - the given password
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||