|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.passwordrules.LexicalRule | +--com.ibm.passwordrules.standard.MinLengthConstraint
This class implements built-in rule for restricting the minimum number of characters in a password.
Field Summary | |
static java.lang.String |
TOO_SHORT
|
Fields inherited from class com.ibm.passwordrules.LexicalRule |
DEFAULT_MAX_SEQUENTIAL_CHARACTERS, LOWER_CASE_ONLY, UPPER_CASE_ONLY |
Constructor Summary | |
MinLengthConstraint()
|
|
MinLengthConstraint(int min)
|
Method Summary | |
void |
constrain(PasswordGenerator template)
Constrain the generation template to values we know are valid. |
int |
getMin()
|
boolean |
join(Rule rule)
Try to join the specified rule with this one. |
boolean |
validate(java.lang.String password,
ValidationInfo validationInfo)
Validate the given password using the given validation info. |
Methods inherited from class com.ibm.passwordrules.LexicalRule |
getParameter, setParameter, validateSafe |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.lang.String TOO_SHORT
Constructor Detail |
public MinLengthConstraint()
public MinLengthConstraint(int min)
Method Detail |
public int getMin()
public void constrain(PasswordGenerator template)
constrain
in class LexicalRule
generator
- including a character template to be constrained.public boolean validate(java.lang.String password, ValidationInfo validationInfo) throws InvalidPasswordException
validationInfo
- contains contextual information about the password being validated.password
- Password to validate.InvalidPasswordException
- thrown when password is invalid.public boolean join(Rule rule) throws IncompatibleRulesException
rule
- The rule to be joined with this one.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |