public class HistoryRule extends Object implements Rule
PasswordData.setPasswordReferences(List).| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CODE
Error code for history violation.
|
protected boolean |
reportAllFailures
Whether to report all history matches or just the first.
|
| Constructor and Description |
|---|
HistoryRule()
Creates a new history rule.
|
HistoryRule(boolean reportAll)
Creates a new history rule.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createRuleResultDetailParameters(int size)
Creates the parameter data for the rule result detail.
|
protected boolean |
matches(String password,
PasswordData.Reference reference)
Determines whether a password matches an historical password.
|
RuleResult |
validate(PasswordData passwordData)
Validates the supplied password data per the requirements of this rule.
|
public static final String ERROR_CODE
protected boolean reportAllFailures
public HistoryRule()
public HistoryRule(boolean reportAll)
reportAll - whether to report all matches or just the firstpublic RuleResult validate(PasswordData passwordData)
Ruleprotected boolean matches(String password, PasswordData.Reference reference)
password - candidate passwordreference - reference passwordCopyright © 2003-2024 Virginia Tech. All Rights Reserved.