edu.vt.middleware.password
Class RuleResult

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

public class RuleResult
extends Object

Result of a password rule validation.

Version:
$Revision: 1926 $ $Date: 2011-04-26 15:52:24 -0400 (Tue, 26 Apr 2011) $
Author:
Middleware Services

Field Summary
protected  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 rule result.
RuleResult(boolean b, RuleResultDetail rrd)
          Creates a new rule result.
 
Method Summary
 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(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 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 rule result.

Parameters:
b - result validity

RuleResult

public RuleResult(boolean b,
                  RuleResultDetail rrd)
Creates a new rule result.

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 List<RuleResultDetail> getDetails()
Returns any details associated with the rule verification.

Returns:
rule result details

setDetails

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

Parameters:
rrd - rule result details


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