edu.vt.middleware.password
Class DictionaryRuleResult

java.lang.Object
  extended by edu.vt.middleware.password.RuleResult
      extended by edu.vt.middleware.password.DictionaryRuleResult

public class DictionaryRuleResult
extends RuleResult

DictionaryRuleResult provides common implementation for password dictionary rule result implementations.

Version:
$Revision: 1724 $ $Date: 2010-10-29 13:47:59 -0400 (Fri, 29 Oct 2010) $
Author:
Middleware Services

Field Summary
protected  java.lang.String matchingWord
          word which caused this rule to fail.
 
Fields inherited from class edu.vt.middleware.password.RuleResult
details, valid
 
Constructor Summary
DictionaryRuleResult()
          Default constructor.
DictionaryRuleResult(boolean b)
          Creates a new DictionaryRuleResult with the supplied validity.
 
Method Summary
 java.lang.String getMatchingWord()
          This returns the dictionary word which caused the password to fail.
 void setMatchingWord(java.lang.String s)
          This sets the dictionary word which caused the password to fail.
 
Methods inherited from class edu.vt.middleware.password.RuleResult
getDetails, isValid, setDetails, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matchingWord

protected java.lang.String matchingWord
word which caused this rule to fail.

Constructor Detail

DictionaryRuleResult

public DictionaryRuleResult()
Default constructor.


DictionaryRuleResult

public DictionaryRuleResult(boolean b)
Creates a new DictionaryRuleResult with the supplied validity.

Parameters:
b - result validity
Method Detail

getMatchingWord

public java.lang.String getMatchingWord()
This returns the dictionary word which caused the password to fail. If no failure occurred this value will be null.

Returns:
String - illegal word the password contains

setMatchingWord

public void setMatchingWord(java.lang.String s)
This sets the dictionary word which caused the password to fail.

Parameters:
s - illegal word the password contains


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