|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.password.AbstractDictionaryRule
public abstract class AbstractDictionaryRule
AbstractPasswordDictionaryRule provides common implementation
for password dictionary rules.
| Field Summary | |
|---|---|
protected edu.vt.middleware.dictionary.Dictionary |
dictionary
dictionary of words. |
protected boolean |
matchBackwards
whether to search for dictionary words backwards. |
| Constructor Summary | |
|---|---|
AbstractDictionaryRule()
|
|
| Method Summary | |
|---|---|
protected abstract java.lang.String |
doWordSearch(java.lang.String text)
Searches the dictionary with the supplied text. |
edu.vt.middleware.dictionary.Dictionary |
getDictionary()
This will return the Dictionary used to search for passwords. |
boolean |
isMatchBackwards()
Return true if the verify method will search the password for dictionary words spelled backwards as well as forwards. |
void |
setDictionary(edu.vt.middleware.dictionary.Dictionary dict)
This will set the Dictionary used to search for passwords. |
void |
setMatchBackwards(boolean b)
This causes the verify method to search the password for dictionary words spelled backwards as well as forwards. |
java.lang.String |
toString()
This returns a string representation of this object. |
DictionaryRuleResult |
validate(PasswordData passwordData)
See Rule.validate(PasswordData). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected edu.vt.middleware.dictionary.Dictionary dictionary
protected boolean matchBackwards
| Constructor Detail |
|---|
public AbstractDictionaryRule()
| Method Detail |
|---|
public void setDictionary(edu.vt.middleware.dictionary.Dictionary dict)
Dictionary used to search for passwords.
dict - Dictionary to use for searchingpublic edu.vt.middleware.dictionary.Dictionary getDictionary()
Dictionary used to search for passwords.
Dictionarypublic void setMatchBackwards(boolean b)
b - booleanpublic boolean isMatchBackwards()
booleanpublic DictionaryRuleResult validate(PasswordData passwordData)
Rule.validate(PasswordData).
validate in interface RulepasswordData - PasswordData to verify (not null).
DictionaryRuleResult - details on password
verification
java.lang.NullPointerException - if the password data is null.protected abstract java.lang.String doWordSearch(java.lang.String text)
text - to search dictionary with
String matching wordpublic java.lang.String toString()
toString in class java.lang.ObjectString
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||