com.ibm.passwordrules
Class IterationsExceededException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--com.ibm.passwordrules.IterationsExceededException
- All Implemented Interfaces:
- java.io.Serializable
- public class IterationsExceededException
- extends java.lang.Exception
Thrown when allowed number of iterations was exceeded while generating a
randomized password satisfying all given rules. Such exception would indicate that the password rules are too
restrictive and therefore the resulting password would be too weak, or on the other extreme, that
the password rules validate methods are much stronger the constrain methods.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
ITERATIONS_EXCEEDED
Identifier for this type of exception |
Method Summary |
int |
getCount()
Gets the number of iterations performed before an exception was thrown. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ITERATIONS_EXCEEDED
public static java.lang.String ITERATIONS_EXCEEDED
- Identifier for this type of exception
IterationsExceededException
public IterationsExceededException(int count)
- Constructor
- Parameters:
count
- number of iterations exceeded
getCount
public int getCount()
- Gets the number of iterations performed before an exception was thrown.
- Returns:
- The number of iterations performed.