edu.vt.middleware.password
Class NumericalSequenceRule
java.lang.Object
edu.vt.middleware.password.AbstractSequenceRule
edu.vt.middleware.password.NumericalSequenceRule
- All Implemented Interfaces:
- Rule
public class NumericalSequenceRule
- extends AbstractSequenceRule
Rule for determining if a password contains a numerical keyboard sequence.
The default sequence length is 5 characters.
- Sequences are of the form: '23456'
- If wrap=true: '90123' will match
- Version:
- $Revision: 1927 $ $Date: 2011-04-27 13:32:24 -0400 (Wed, 27 Apr 2011) $
- Author:
- Middleware Services
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NumericalSequenceRule
public NumericalSequenceRule()
- Creates a new numerical sequence rule with the default sequence length.
NumericalSequenceRule
public NumericalSequenceRule(int length,
boolean wrap)
- Creates a new numerical sequence rule.
- Parameters:
length - of sequence to search for.wrap - true to wrap sequences when searching for matches, false
otherwise.
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.