edu.vt.middleware.password
Class QwertySequenceRule

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

public class QwertySequenceRule
extends AbstractSequenceRule

Rule for determining if a password contains a QWERTY keyboard sequence. Both uppercase and lowercase sequences are checked. The default sequence length is 5 characters.

Version:
$Revision: 1927 $ $Date: 2011-04-27 13:32:24 -0400 (Wed, 27 Apr 2011) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class edu.vt.middleware.password.AbstractSequenceRule
DEFAULT_SEQUENCE_LENGTH, ERROR_CODE, MINIMUM_SEQUENCE_LENGTH, sequenceLength, wrapSequence
 
Constructor Summary
QwertySequenceRule()
          Creates a new qwerty sequence rule with the default sequence length.
QwertySequenceRule(int sl, boolean wrap)
          Create a new qwerty sequence rule.
 
Method Summary
protected  char[][] getSequence(int n)
          Returns the sequence of character pairs for which to search.
protected  int getSequenceCount()
          Returns 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

QwertySequenceRule

public QwertySequenceRule()
Creates a new qwerty sequence rule with the default sequence length.


QwertySequenceRule

public QwertySequenceRule(int sl,
                          boolean wrap)
Create a new qwerty sequence rule.

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

getSequence

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

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

getSequenceCount

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

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


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