|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.passwordrules.BehavioralRule
Abstract base class for Rule implementations that provide validation of password's behavior.
Constructor Summary | |
---|---|
BehavioralRule()
|
Method Summary | |
---|---|
void |
constrain(PasswordGenerator generator)
Some classes implementing Rule interface will not have a need to constrain the password generator. |
java.lang.String |
getParameter()
This Rule interface method in is not valid in the context of standard rule classes. |
boolean |
join(Rule rule)
Try to join the specified rule with this one. |
void |
setParameter(java.lang.String parameter)
This Rule interface method in is not valid in the context of standard rule classes. |
boolean |
validate(java.lang.String password,
ValidationInfo validationInfo)
Validate the given password using the given validation info. |
boolean |
validateSafe(java.lang.String password,
ValidationInfo validationInfo)
Validate the given password using the given validation info. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BehavioralRule()
Method Detail |
public boolean validate(java.lang.String password, ValidationInfo validationInfo) throws InvalidPasswordException
validate
in interface Rule
password
- Password to validate.validationInfo
- contains contextual information about the password being validated.
InvalidPasswordException
- thrown when password is invalid.public boolean join(Rule rule) throws IncompatibleRulesException
join
in interface Rule
rule
- The rule to be joined with this one.
IncompatibleRulesException
- Thrown when given rule cannot be joined because it is not compatible.public void constrain(PasswordGenerator generator)
constrain
in interface Rule
generator
- password generator be constrain.public boolean validateSafe(java.lang.String password, ValidationInfo validationInfo)
validateSafe
in interface Rule
validationInfo
- contains contextual information about the password being validated.password
- Password to validate.
public java.lang.String getParameter()
getParameter
in interface Rule
public void setParameter(java.lang.String parameter)
setParameter
in interface Rule
parameter
- String value of the parameter.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |