edu.vt.middleware.password
Class RuleResult

java.lang.Object
  extended by edu.vt.middleware.password.RuleResult
Direct Known Subclasses:
DictionaryRuleResult

public class RuleResult
extends java.lang.Object

RuleResult provides common implementation for password rule result implementations.

Version:
$Revision: 1638 $ $Date: 2010-10-06 15:16:33 -0400 (Wed, 06 Oct 2010) $
Author:
Middleware Services

Field Summary
protected  java.util.List<RuleResultDetail> details
          details associated with a password rule result.
protected  boolean valid
          whether password rule was successful.
 
Constructor Summary
RuleResult()
          Default constructor.
RuleResult(boolean b)
          Creates a new RuleResult with the supplied validity.
RuleResult(boolean b, RuleResultDetail rrd)
          Creates a new RuleResult with the supplied validity and details.
 
Method Summary
 java.util.List<RuleResultDetail> getDetails()
          Returns any details associated with the rule verification.
 boolean isValid()
          Returns whether the result of the rule verification is a valid password.
 void setDetails(java.util.List<RuleResultDetail> rrd)
          Sets any details associated with the rule verification.
 void setValid(boolean b)
          Sets whether the result of the rule verification is a valid password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valid

protected boolean valid
whether password rule was successful.


details

protected java.util.List<RuleResultDetail> details
details associated with a password rule result.

Constructor Detail

RuleResult

public RuleResult()
Default constructor.


RuleResult

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

Parameters:
b - result validity

RuleResult

public RuleResult(boolean b,
                  RuleResultDetail rrd)
Creates a new RuleResult with the supplied validity and details.

Parameters:
b - result validity
rrd - details associated with this result
Method Detail

isValid

public boolean isValid()
Returns whether the result of the rule verification is a valid password.

Returns:
valid password for this rule

setValid

public void setValid(boolean b)
Sets whether the result of the rule verification is a valid password.

Parameters:
b - valid password for this rule

getDetails

public java.util.List<RuleResultDetail> getDetails()
Returns any details associated with the rule verification. May be null.

Returns:
rule result details

setDetails

public void setDetails(java.util.List<RuleResultDetail> rrd)
Sets any details associated with the rule verification.

Parameters:
rrd - rule result details


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