edu.vt.middleware.password
Class RuleList

java.lang.Object
  extended by edu.vt.middleware.password.RuleList
All Implemented Interfaces:
Rule

public class RuleList
extends java.lang.Object
implements Rule

RuleList contains methods for setting password rules and then determining if a password meets the requirements of all the rules.

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

Constructor Summary
RuleList()
           
 
Method Summary
 java.util.List<Rule> getRules()
          This will return the rules being used by this RuleList.
 void setRules(java.util.List<Rule> l)
          This will set the rules to be used by this RuleList.
 java.lang.String toString()
          This returns a string representation of this object.
 RuleResult validate(PasswordData passwordData)
          This returns whether or not the supplied password data meets the requirements of this rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RuleList

public RuleList()
Method Detail

getRules

public java.util.List<Rule> getRules()
This will return the rules being used by this RuleList.

Returns:
List of rules

setRules

public void setRules(java.util.List<Rule> l)
This will set the rules to be used by this RuleList.

Parameters:
l - List of rules

validate

public RuleResult validate(PasswordData passwordData)
This returns whether or not the supplied password data meets the requirements of this rule.

Specified by:
validate in interface Rule
Parameters:
passwordData - PasswordData to verify (not null).
Returns:
RuleResult - details on password verification

toString

public java.lang.String toString()
This returns a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String


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