|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.AbstractSequenceRule
public abstract class AbstractSequenceRule
AbstractSequenceRule contains functionality common to keyboard
sequence rules.
| Field Summary | |
|---|---|
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 int |
sequenceLength
Number of characters in sequence to match. |
protected boolean |
wrapSequence
Whether or not to wrap a sequence when searching for matches. |
| Constructor Summary | |
|---|---|
AbstractSequenceRule()
|
|
| Method Summary | |
|---|---|
protected abstract char[][] |
getSequence(int n)
Get the sequence of character pairs for which to search. |
protected abstract int |
getSequenceCount()
Get the number of character sequences used in this implementation. |
protected void |
setSequenceLength(int sl)
Sets the sequence length. |
java.lang.String |
toString()
This returns a string representation of this object. |
RuleResult |
validate(PasswordData passwordData)
This returns whether or not the supplied password data meets the requirements of this rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_SEQUENCE_LENGTH
public static final int MINIMUM_SEQUENCE_LENGTH
protected int sequenceLength
protected boolean wrapSequence
| Constructor Detail |
|---|
public AbstractSequenceRule()
| Method Detail |
|---|
public RuleResult validate(PasswordData passwordData)
validate in interface RulepasswordData - PasswordData to verify (not null).
RuleResult - details on password verificationpublic java.lang.String toString()
toString in class java.lang.ObjectStringprotected void setSequenceLength(int sl)
sl - int sequence lengthprotected abstract char[][] getSequence(int n)
n - int provides support for multiple character
sequences that are indexed from 0 to n.
char[][] character sequence.protected abstract int getSequenceCount()
int number of character sequences.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||