edu.vt.middleware.password
Class AlphabeticalSequenceRule

java.lang.Object
  extended by edu.vt.middleware.password.AbstractSequenceRule
      extended by edu.vt.middleware.password.AlphabeticalSequenceRule
All Implemented Interfaces:
Rule

public class AlphabeticalSequenceRule
extends AbstractSequenceRule

AlphabeticalSequenceRule contains methods for determining if a password contains an alphabetical keyboard sequence. Both uppercase and lowercase sequences are checked. The default sequence length is 5 characters.

Version:
$Revision: 1841 $ $Date: 2011-02-25 14:05:47 -0500 (Fri, 25 Feb 2011) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class edu.vt.middleware.password.AbstractSequenceRule
DEFAULT_SEQUENCE_LENGTH, MINIMUM_SEQUENCE_LENGTH, sequenceLength, wrapSequence
 
Constructor Summary
AlphabeticalSequenceRule()
          This creates a new AlphabeticalSequenceRule with the default sequence length.
AlphabeticalSequenceRule(int sl, boolean wrap)
          This will create a new AlphabeticalSequenceRule with the supplied sequence length and wrap settings.
 
Method Summary
protected  char[][] getSequence(int n)
          Get the sequence of character pairs for which to search.
protected  int getSequenceCount()
          Get the number of character sequences used in this implementation.
 
Methods inherited from class edu.vt.middleware.password.AbstractSequenceRule
setSequenceLength, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlphabeticalSequenceRule

public AlphabeticalSequenceRule()
This creates a new AlphabeticalSequenceRule with the default sequence length.


AlphabeticalSequenceRule

public AlphabeticalSequenceRule(int sl,
                                boolean wrap)
This will create a new AlphabeticalSequenceRule with the supplied sequence length and wrap settings.

Parameters:
sl - int sequence length
wrap - boolean whether to wrap search sequences
Method Detail

getSequence

protected char[][] getSequence(int n)
Get the sequence of character pairs for which to search.

Specified by:
getSequence in class AbstractSequenceRule
Parameters:
n - int provides support for multiple character sequences that are indexed from 0 to n.
Returns:
char[][] character sequence.

getSequenceCount

protected int getSequenceCount()
Get the number of character sequences used in this implementation.

Specified by:
getSequenceCount in class AbstractSequenceRule
Returns:
int number of character sequences.


Copyright © 2003-2011 Virginia Tech. All Rights Reserved.