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

The system doesn't enforce this rule at this moment.

See Also:
Serialized Form

Field Summary
static java.lang.String INCOMPATIBLE_MAX_MIN
          Constant representing a nmessage key in a property file
 
Constructor Summary
ValidityTimeConstraint()
          Default constructor
ValidityTimeConstraint(long minTime, long maxTime)
          Constructor accepting minimum and maximum parameters.
 
Method Summary
 long getMaxTime()
          Obtain the time until which the password is valid.
 long getMinTime()
          Obtain the time from which the password is valid.
 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 final java.lang.String INCOMPATIBLE_MAX_MIN
Constant representing a nmessage key in a property file

See Also:
Constant Field Values
Constructor Detail

ValidityTimeConstraint

public ValidityTimeConstraint()
Default constructor


ValidityTimeConstraint

public ValidityTimeConstraint(long minTime,
                              long maxTime)
Constructor accepting minimum and maximum parameters.

Parameters:
minTime - long value representing the time in milliseconds from which the password is valid.
maxTime - long value representing the time in milliseconds until which the password is valid.
Method Detail

getMaxTime

public long getMaxTime()
Obtain the time until which the password is valid.

Returns:
long value representing the time in milliceconds until which the password is valid.

getMinTime

public long getMinTime()
Obtain the time from which the password is valid.

Returns:
long value representing the time in milliseconds from which the password is valid.

join

public boolean join(Rule rule)
             throws IncompatibleRulesException
Try to join the specified rule with this one. The more restrictive rule takes precedence.

Specified by:
join in interface Rule
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.


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.