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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INCOMPATIBLE_MAX_MIN
public static java.lang.String INCOMPATIBLE_MAX_MIN
ValidityTimeConstraint
public ValidityTimeConstraint()
ValidityTimeConstraint
public ValidityTimeConstraint(long minTime,
long maxTime)
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.