com.ibm.passwordrules

Class IterationsExceededException

  • All Implemented Interfaces:
    java.io.Serializable


    public class IterationsExceededException
    extends ITIMException
    Class represents an exception, which is thrown if the allowed number of iterations was exceeded while generating a random password satisfying all associated password rules. Exception may occur under one of the following conditions: 1. The password rules are too restrictive and therefore the generator couldn't create a strong password. 2. The password rules' contrain method implementations are weaker than the corresponding validate methods.
    See Also:
    Serialized Form
    • Field Detail

      • ITERATIONS_EXCEEDED

        public static final java.lang.String ITERATIONS_EXCEEDED
        Constant representing a message key in a property file
        See Also:
        Constant Field Values
    • Constructor Detail

      • IterationsExceededException

        public IterationsExceededException(int count)
        Constructor
        Parameters:
        count - number of iterations exceeded
    • Method Detail

      • getCount

        public int getCount()
        Gets the number of iterations performed before an exception was thrown.
        Returns:
        The number of iterations performed.