public class InvalidPasswordOnCompRuleException extends InvalidPasswordException
| Constructor and Description |
|---|
InvalidPasswordOnCompRuleException(CompositeRule ruleViolated,
java.util.Collection<Rule> rulesViolated)
Construct an invalid password exception with the rule that was violated.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getComposingExceptions, setComposingExceptionsgetLocalizedMessage, getMessage, getMessage, getMessageId, getThrowable, getTokens, normalize, printStackTrace, printStackTrace, printStackTrace, toXMLpublic InvalidPasswordOnCompRuleException(CompositeRule ruleViolated, java.util.Collection<Rule> rulesViolated)
ruleViolated - The rule the password violates.rulesViolated - The collection of rules within this CompositeRule that the password is not compliant.public InvalidPasswordOnCompRuleException(CompositeRule ruleViolated, java.util.Collection<Rule> rulesViolated, java.lang.String reason)
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.public Rule getRuleViolated()
InvalidPasswordExceptiongetRuleViolated in class InvalidPasswordExceptionpublic java.lang.String getReason()
InvalidPasswordExceptiongetReason in class InvalidPasswordExceptionpublic java.util.Collection<Rule> getRulesViolated()