| | |
| | | import org.opends.server.types.Entry; |
| | | import org.opends.server.types.InitializationException; |
| | | import org.opends.server.types.Operation; |
| | | |
| | | import org.opends.messages.MessageBuilder; |
| | | import org.opends.messages.Message; |
| | | |
| | | |
| | | /** |
| | |
| | | } |
| | | else |
| | | { |
| | | throw new InitializationException(1, |
| | | "Cannot configure more than one TestPasswordValidator instance"); |
| | | throw new InitializationException(Message.raw( |
| | | "Cannot configure more than one TestPasswordValidator instance")); |
| | | } |
| | | |
| | | lastNewPassword = null; |
| | |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | | StringBuilder invalidReason) |
| | | MessageBuilder invalidReason) |
| | | { |
| | | lastNewPassword = newPassword; |
| | | lastCurrentPasswords = currentPasswords; |