com.ibm.passwordrules

Class InvalidPasswordOnCompRuleException

    • Constructor Detail

      • 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.
    • Method Detail

      • 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: