edu.vt.middleware.password
Class HistoryRule
java.lang.Object
edu.vt.middleware.password.AbstractDigester
edu.vt.middleware.password.HistoryRule
- All Implemented Interfaces:
- Rule
public class HistoryRule
- extends AbstractDigester
- implements Rule
Rule for determining if a password matches one of any previous password a
user has chosen. If no password history has been set or an empty history has
been set, then passwords will meet this rule.
- Version:
- $Revision: 1930 $ $Date: 2011-04-28 13:06:17 -0400 (Thu, 28 Apr 2011) $
- Author:
- Middleware Services
|
Field Summary |
static java.lang.String |
ERROR_CODE
Error code for history violation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR_CODE
public static final java.lang.String ERROR_CODE
- Error code for history violation.
- See Also:
- Constant Field Values
HistoryRule
public HistoryRule()
validate
public RuleResult validate(PasswordData passwordData)
- Validates the supplied password data per the requirements of this rule.
- Specified by:
validate in interface Rule
- Parameters:
passwordData - to verify (not null).
- Returns:
- details on password verification
createRuleResultDetailParameters
protected java.util.Map<java.lang.String,?> createRuleResultDetailParameters(int size)
- Creates the parameter data for the rule result detail.
- Parameters:
size - of the history list
- Returns:
- map of parameter name to value
Copyright © 2003-2011 Virginia Tech. All Rights Reserved.