Modifier and Type | Field and Description |
---|---|
static String |
ERROR_CODE
Error code for allowed character failures.
|
protected boolean |
reportAllFailures
Whether to report all sequence matches or just the first.
|
Constructor and Description |
---|
AllowedCharacterRule(char[] c)
Create a new allowed character rule.
|
AllowedCharacterRule(char[] c,
boolean reportAll)
Create a new allowed character rule.
|
AllowedCharacterRule(char[] c,
MatchBehavior behavior)
Create a new allowed character rule.
|
AllowedCharacterRule(char[] c,
MatchBehavior behavior,
boolean reportAll)
Create a new allowed 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[] |
getAllowedCharacters()
Returns the allowed 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 AllowedCharacterRule(char[] c)
c
- allowed characterspublic AllowedCharacterRule(char[] c, MatchBehavior behavior)
c
- allowed charactersbehavior
- how to match allowed characterspublic AllowedCharacterRule(char[] c, boolean reportAll)
c
- allowed charactersreportAll
- whether to report all matches or just the firstpublic AllowedCharacterRule(char[] c, MatchBehavior behavior, boolean reportAll)
c
- allowed charactersbehavior
- how to match allowed charactersreportAll
- whether to report all matches or just the firstpublic char[] getAllowedCharacters()
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.