com.ibm.passwordrules.standard
Class ValidityTimeConstraint

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

public class ValidityTimeConstraint
extends BehavioralRule

This rule is currently not used as the system doesn't have a way to enforce it.

See Also:
Serialized Form

Field Summary
static java.lang.String INCOMPATIBLE_MAX_MIN
           
 
Constructor Summary
ValidityTimeConstraint()
           
ValidityTimeConstraint(long minTime, long maxTime)
           
 
Method Summary
 long getMaxTime()
           
 long getMinTime()
           
 boolean join(Rule rule)
          Try to join the specified rule with this one.
 
Methods inherited from class com.ibm.passwordrules.BehavioralRule
constrain, getParameter, setParameter, validate, validateSafe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCOMPATIBLE_MAX_MIN

public static java.lang.String INCOMPATIBLE_MAX_MIN
Constructor Detail

ValidityTimeConstraint

public ValidityTimeConstraint()

ValidityTimeConstraint

public ValidityTimeConstraint(long minTime,
                              long maxTime)
Method Detail

getMaxTime

public long getMaxTime()

getMinTime

public long getMinTime()

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.