edu.vt.middleware.password
Class HistoryRule

java.lang.Object
  extended by edu.vt.middleware.password.AbstractDigester
      extended by 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 String ERROR_CODE
          Error code for history violation.
 
Fields inherited from class edu.vt.middleware.password.AbstractDigester
converter, digest
 
Constructor Summary
HistoryRule()
           
 
Method Summary
protected  Map<String,?> createRuleResultDetailParameters(int size)
          Creates the parameter data for the rule result detail.
 RuleResult validate(PasswordData passwordData)
          Validates the supplied password data per the requirements of this rule.
 
Methods inherited from class edu.vt.middleware.password.AbstractDigester
matches, setDigest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_CODE

public static final String ERROR_CODE
Error code for history violation.

See Also:
Constant Field Values
Constructor Detail

HistoryRule

public HistoryRule()
Method Detail

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 Map<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.