com.ibm.passwordrules
Class InvalidPasswordOnCompRuleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.ibm.itim.exception.ITIMException
com.ibm.passwordrules.InvalidPasswordException
com.ibm.passwordrules.InvalidPasswordOnCompRuleException
All Implemented Interfaces: java.io.Serializable
public class InvalidPasswordOnCompRuleException extends InvalidPasswordException
See Also: Serialized Form
Method Summary
java.lang.String
getReason ()
Gets the reason that the password violated the given rule.
java.util.Collection<Rule >
getRulesViolated ()
Returns the collection of rules withing the CompositeRule that
the password does not comply to.
Rule
getRuleViolated ()
Returns the rule that was violated to generate this exception.
Methods inherited from class com.ibm.itim.exception.ITIMException
getLocalizedMessage , getMessage , getMessage , getMessageId , getThrowable , getTokens , normalize , printStackTrace , printStackTrace , printStackTrace , toXML
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
InvalidPasswordOnCompRuleException
public InvalidPasswordOnCompRuleException (CompositeRule ruleViolated,
java.util.Collection<Rule > rulesViolated)
Construct an invalid password exception with the rule that was violated.
Parameters: ruleViolated
- The rule the password violates.rulesViolated
- The collection of rules within this CompositeRule that the password is not compliant.
InvalidPasswordOnCompRuleException
public InvalidPasswordOnCompRuleException (CompositeRule ruleViolated,
java.util.Collection<Rule > rulesViolated,
java.lang.String reason)
Construct an invalid password exception with the rule that was violated
and the reason for the violation.
Parameters: ruleViolated
- The rule the password violates.reason
- Reason for the violation.rulesInvalid
- The collection of rules within this CompositeRule that the password is not compliant.
getRuleViolated
public Rule getRuleViolated ()
Description copied from class: InvalidPasswordException
Returns the rule that was violated to generate this exception.
Overrides: getRuleViolated
in class InvalidPasswordException
Returns: violated rule
getReason
public java.lang.String getReason ()
Description copied from class: InvalidPasswordException
Gets the reason that the password violated the given rule. May be
an empty string indicating that no reason was given.
Overrides: getReason
in class InvalidPasswordException
Returns: reason for violation.
Constant representing a error message key in a property file.
getRulesViolated
public java.util.Collection<Rule > getRulesViolated ()
Returns the collection of rules withing the CompositeRule that
the password does not comply to.
Returns:
IBM Security Identity Manager 6.0.0 © Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.