Modifier and Type | Field and Description |
---|---|
static String |
ERROR_CODE
Error code for illegal character failures.
|
protected boolean |
reportAllFailures
Whether to report all sequence matches or just the first.
|
Constructor and Description |
---|
IllegalCharacterRule(char[] c)
Create a new illegal character rule.
|
IllegalCharacterRule(char[] c,
boolean reportAll)
Create a new illegal character rule.
|
IllegalCharacterRule(char[] c,
MatchBehavior behavior)
Create a new illegal character rule.
|
IllegalCharacterRule(char[] c,
MatchBehavior behavior,
boolean reportAll)
Create a new illegal character rule.
|
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
createRuleResultDetailParameters(char c)
Creates the parameter data for the rule result detail.
|
protected RuleResultMetadata |
createRuleResultMetadata(PasswordData password)
Creates the rule result metadata.
|
char[] |
getIllegalCharacters()
Returns the illegal characters for this rule.
|
MatchBehavior |
getMatchBehavior()
Returns the match behavior for this rule.
|
String |
toString() |
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 IllegalCharacterRule(char[] c)
c
- illegal characterspublic IllegalCharacterRule(char[] c, MatchBehavior behavior)
c
- illegal charactersbehavior
- how to match illegal characterspublic IllegalCharacterRule(char[] c, boolean reportAll)
c
- illegal charactersreportAll
- whether to report all matches or just the firstpublic IllegalCharacterRule(char[] c, MatchBehavior behavior, boolean reportAll)
c
- illegal charactersbehavior
- how to match illegal charactersreportAll
- whether to report all matches or just the firstpublic char[] getIllegalCharacters()
public MatchBehavior getMatchBehavior()
public RuleResult validate(PasswordData passwordData)
Rule
protected Map<String,Object> createRuleResultDetailParameters(char c)
c
- illegal characterprotected RuleResultMetadata createRuleResultMetadata(PasswordData password)
password
- data used for metadata creationCopyright © 2003-2024 Virginia Tech. All Rights Reserved.