com.ibm.passwordrules.standard
Class NotInDictionary

java.lang.Object
  |
  +--com.ibm.passwordrules.BehavioralRule
        |
        +--com.ibm.passwordrules.standard.NotInDictionary
All Implemented Interfaces:
java.lang.Cloneable, Rule, java.io.Serializable

public class NotInDictionary
extends BehavioralRule

This class implements built-in rule for not allowing passwords to be matched against a password dictionary entry.

See Also:
Serialized Form

Field Summary
static java.lang.String FOUND_IN_DICTIONARY
           
 
Constructor Summary
NotInDictionary()
          Standard constructor.
 
Method Summary
 boolean inDictionary(java.lang.String password)
          Checks to see if the password is in the dictionary (always case insensitive).
 boolean join(Rule rule)
          Try to join the specified rule with this one.
 boolean validate(java.lang.String password, ValidationInfo validationInfo)
          Validate the given password using the given validation info.
 
Methods inherited from class com.ibm.passwordrules.BehavioralRule
constrain, getParameter, setParameter, validateSafe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOUND_IN_DICTIONARY

public static java.lang.String FOUND_IN_DICTIONARY
Constructor Detail

NotInDictionary

public NotInDictionary()
Standard constructor.
Method Detail

validate

public boolean validate(java.lang.String password,
                        ValidationInfo validationInfo)
                 throws InvalidPasswordException
Validate the given password using the given validation info.
Overrides:
validate in class BehavioralRule
Parameters:
validationInfo - contains contextual information about the password being validated.
password - Password to validate.
Returns:
true if password is valid
Throws:
InvalidPasswordException - thrown when password is invalid.

join

public boolean join(Rule rule)
             throws IncompatibleRulesException
Try to join the specified rule with this one. The more restrictive rule takes precedence.
Overrides:
join in class BehavioralRule
Parameters:
rule - The rule to be joined with this one.
Returns:
True if the rule was successfully joined.
Throws:
IncompatibleRulesException - Thrown when given rule cannot be joined because it is not compatible.

inDictionary

public boolean inDictionary(java.lang.String password)
Checks to see if the password is in the dictionary (always case insensitive). param password Clear text password to check.