| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CODE
Error code for regex validation failures.
|
protected Pattern |
pattern
Regex pattern.
|
| Constructor and Description |
|---|
AllowedRegexRule(String regex)
Creates a new allowed regex rule.
|
AllowedRegexRule(String regex,
int regexFlags)
Creates a new allowed regex rule.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
createRuleResultDetailParameters()
Creates the parameter data for the rule result detail.
|
Pattern |
getPattern()
Returns the pattern 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 final Pattern pattern
public AllowedRegexRule(String regex)
regex - regular expressionpublic AllowedRegexRule(String regex, int regexFlags)
regex - regular expressionregexFlags - regular expression flagspublic Pattern getPattern()
public RuleResult validate(PasswordData passwordData)
Ruleprotected Map<String,Object> createRuleResultDetailParameters()
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.