public class SourceRule extends Object implements Rule
PasswordData.setPasswordReferences(List)
Modifier and Type | Field and Description |
---|---|
static String |
ERROR_CODE
Error code for regex validation failures.
|
protected boolean |
reportAllFailures
Whether to report all source matches or just the first.
|
Constructor and Description |
---|
SourceRule()
Creates a new source rule.
|
SourceRule(boolean reportAll)
Creates a new source rule.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
createRuleResultDetailParameters(String source)
Creates the parameter data for the rule result detail.
|
protected boolean |
matches(String password,
PasswordData.Reference reference)
Determines whether a password matches a source 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 SourceRule()
public SourceRule(boolean reportAll)
reportAll
- whether to report all matches or just the firstpublic RuleResult validate(PasswordData passwordData)
Rule
protected boolean matches(String password, PasswordData.Reference reference)
password
- candidate passwordreference
- reference passwordCopyright © 2003-2024 Virginia Tech. All Rights Reserved.