Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SEQUENCE_LENGTH
Default length of keyboard sequence, value is 5.
|
static int |
MINIMUM_SEQUENCE_LENGTH
Minimum length of keyboard sequence, value is 3.
|
protected boolean |
reportAllFailures
Whether to report all sequence matches or just the first.
|
protected SequenceData |
sequenceData
Sequence data for this rule.
|
protected int |
sequenceLength
Number of characters in sequence to match.
|
protected boolean |
wrapSequence
Whether or not to wrap a sequence when searching for matches.
|
Constructor and Description |
---|
IllegalSequenceRule(SequenceData data)
Creates a new sequence rule with the supplied list of characters.
|
IllegalSequenceRule(SequenceData data,
int sl,
boolean wrap)
Creates a new sequence rule with the supplied list of characters.
|
IllegalSequenceRule(SequenceData data,
int sl,
boolean wrap,
boolean reportAll)
Creates a new sequence rule with the supplied list of characters.
|
Modifier and Type | Method and Description |
---|---|
SequenceData |
getSequenceData()
Returns the sequence data for this rule.
|
int |
getSequenceLength()
Returns the sequence length for this rule.
|
String |
toString() |
RuleResult |
validate(PasswordData passwordData)
Validates the supplied password data per the requirements of this rule.
|
public static final int DEFAULT_SEQUENCE_LENGTH
public static final int MINIMUM_SEQUENCE_LENGTH
protected final SequenceData sequenceData
protected int sequenceLength
protected boolean wrapSequence
protected boolean reportAllFailures
public IllegalSequenceRule(SequenceData data)
data
- sequence data for this rulepublic IllegalSequenceRule(SequenceData data, int sl, boolean wrap)
data
- sequence data for this rulesl
- sequence lengthwrap
- whether to wrap sequencespublic IllegalSequenceRule(SequenceData data, int sl, boolean wrap, boolean reportAll)
data
- sequence data for this rulesl
- sequence lengthwrap
- whether to wrap sequencesreportAll
- whether to report all sequence matches or just the firstpublic int getSequenceLength()
public SequenceData getSequenceData()
public RuleResult validate(PasswordData passwordData)
Rule
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.