|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.passwordrules.BehavioralRule | +--com.ibm.passwordrules.standard.NotReversed
This class implements built-in rule for restricting passwords to be different then previously used passwords present in a reversed history list.
Field Summary | |
---|---|
static java.lang.String |
REUSED
Constant representing a message key in a property file |
Constructor Summary | |
---|---|
NotReversed()
Default constructor. |
|
NotReversed(int historyLength)
Constructor accepting int parameter specifying the length of the reversed password history. |
Method Summary | |
---|---|
int |
getHistoryLength()
Method obtains the length of revered password history. |
boolean |
join(Rule rule)
Try to join the specified rule with this one. |
void |
setHistoryLength(int historyLength)
Set the length of reveresed password history. |
boolean |
validate(java.lang.String password,
ValidationInfo validationInfo)
Validate the given password using the given validation info. |
Methods inherited from class com.ibm.passwordrules.BehavioralRule |
---|
constrain, getParameter, setParameter, validateSafe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String REUSED
Constructor Detail |
public NotReversed()
public NotReversed(int historyLength)
historyLength
- int value representing the number of consecutive historical passwords to be checked.Method Detail |
public int getHistoryLength()
public void setHistoryLength(int historyLength)
historyLength
- int value representing the reveresed password history length.public boolean validate(java.lang.String password, ValidationInfo validationInfo) throws InvalidPasswordException
validate
in interface Rule
validate
in class BehavioralRule
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
join
in interface Rule
join
in class BehavioralRule
rule
- The rule to be joined with this one.
IncompatibleRulesException
- Thrown when given rule cannot be joined because it is not compatible.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |