| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_SEQUENCE_LENGTHDefault length of keyboard sequence, value is 5. | 
| static int | MINIMUM_SEQUENCE_LENGTHMinimum length of keyboard sequence, value is 3. | 
| protected boolean | reportAllFailuresWhether to report all sequence matches or just the first. | 
| protected SequenceData | sequenceDataSequence data for this rule. | 
| protected int | sequenceLengthNumber of characters in sequence to match. | 
| protected boolean | wrapSequenceWhether 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)
RuleCopyright © 2003-2024 Virginia Tech. All Rights Reserved.