| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CODE
Error code for whitespace rule violation.
|
protected boolean |
reportAllFailures
Whether to report all sequence matches or just the first.
|
| Constructor and Description |
|---|
NumberRangeRule(int lower,
int upper)
Creates a new number range rule.
|
NumberRangeRule(int lower,
int upper,
boolean reportAll)
Creates a new number range rule.
|
NumberRangeRule(int lower,
int upper,
MatchBehavior behavior)
Creates a new number range rule.
|
NumberRangeRule(int lower,
int upper,
MatchBehavior behavior,
boolean reportAll)
Creates a new number range rule.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createRuleResultDetailParameters(int number)
Creates the parameter data for the rule result detail.
|
int |
getLowerRange()
Returns the lower range for this rule.
|
MatchBehavior |
getMatchBehavior()
Returns the match behavior for this rule.
|
int |
getUpperRange()
Returns the upper range 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 NumberRangeRule(int lower,
int upper)
lower - end of the number range, inclusiveupper - end of the number range, exclusivepublic NumberRangeRule(int lower,
int upper,
boolean reportAll)
lower - end of the number range, inclusiveupper - end of the number range, exclusivereportAll - whether to report all matches or just the firstpublic NumberRangeRule(int lower,
int upper,
MatchBehavior behavior)
lower - end of the number range, inclusiveupper - end of the number range, exclusivebehavior - how to match number rangepublic NumberRangeRule(int lower,
int upper,
MatchBehavior behavior,
boolean reportAll)
lower - end of the number range, inclusiveupper - end of the number range, exclusivebehavior - how to match number rangereportAll - whether to report all matches or just the firstpublic int getLowerRange()
public int getUpperRange()
public MatchBehavior getMatchBehavior()
public RuleResult validate(PasswordData passwordData)
Ruleprotected Map<String,Object> createRuleResultDetailParameters(int number)
number - matching numberCopyright © 2003-2024 Virginia Tech. All Rights Reserved.