| | |
| | | PasswordValidatorCfg configuration) |
| | | throws InitializationException |
| | | { |
| | | if (instance == null) |
| | | { |
| | | instance = this; |
| | | } |
| | | else |
| | | { |
| | | throw new InitializationException(Message.raw( |
| | | "Cannot configure more than one TestPasswordValidator instance")); |
| | | } |
| | | instance = this; |
| | | |
| | | lastNewPassword = null; |
| | | lastCurrentPasswords = null; |
| | |
| | | |
| | | |
| | | /** |
| | | * Clears the instance after the tests so that it's memory can be reclaimed. |
| | | * This can actually be quite a bit of memory since it references the |
| | | * Schema, ConfigEntryS, etc |
| | | */ |
| | | public static void clearInstanceAfterTests() |
| | | { |
| | | instance = null; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Retrieves the last <CODE>newPassword</CODE> value provided to the |
| | | * <CODE>passwordIsAcceptable</CODE> method. |
| | | * |