edu.vt.middleware.password
Class SourceRule
java.lang.Object
edu.vt.middleware.password.AbstractDigester
edu.vt.middleware.password.SourceRule
- All Implemented Interfaces:
- Rule
public class SourceRule
- extends AbstractDigester
- implements Rule
Rule for determining if a password matches a password from a different
source. Useful for when separate systems cannot have matching passwords. If
no sources have been set or an empty source 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 regex validation failures. |
| 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 regex validation failures.
- See Also:
- Constant Field Values
SourceRule
public SourceRule()
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(java.lang.String source)
- Creates the parameter data for the rule result detail.
- Parameters:
source - matching source
- Returns:
- map of parameter name to value
Copyright © 2003-2011 Virginia Tech. All Rights Reserved.