edu.vt.middleware.password
Class DictionaryRule
java.lang.Object
edu.vt.middleware.password.AbstractDictionaryRule
edu.vt.middleware.password.DictionaryRule
- All Implemented Interfaces:
- Rule
public class DictionaryRule
- extends AbstractDictionaryRule
Rule for determining if a password matches a dictionary word. This rule will
optionally also check for reversed words.
- Version:
- $Revision: 2704 $ $Date: 2013-04-24 17:30:32 -0400 (Wed, 24 Apr 2013) $
- Author:
- Middleware Services
|
Constructor Summary |
DictionaryRule()
Creates a new dictionary rule without supplying a dictionary. |
DictionaryRule(edu.vt.middleware.dictionary.Dictionary dict)
Creates a new dictionary rule. |
DictionaryRule
public DictionaryRule()
- Creates a new dictionary rule without supplying a dictionary. The
dictionary should be set using
AbstractDictionaryRule.setDictionary(Dictionary).
DictionaryRule
public DictionaryRule(edu.vt.middleware.dictionary.Dictionary dict)
- Creates a new dictionary rule. The dictionary should be ready to use when
passed to this constructor.
- Parameters:
dict - to use for searching
doWordSearch
protected String doWordSearch(String text)
- Searches the dictionary with the supplied text.
- Specified by:
doWordSearch in class AbstractDictionaryRule
- Parameters:
text - to search dictionary with
- Returns:
- matching word
Copyright © 2003-2013 Virginia Tech. All Rights Reserved.