boolean adminActionRequired = false;
ArrayList<Message> messages = new ArrayList<Message>();
// Get the existing validator if it's already enabled.
PasswordValidator existingValidator =
passwordValidators.get(configuration.dn());
// If the new configuration has the validator disabled, then disable it if
// it is enabled, or do nothing if it's already disabled.
if (! configuration.isEnabled())
{
if (existingValidator != null)
{
DirectoryServer.deregisterPasswordValidator(configuration.dn());
PasswordValidator passwordValidator =
passwordValidators.remove(configuration.dn());
if (passwordValidator != null)
{
passwordValidator.finalizePasswordValidator();
}
}
return new ConfigChangeResult(resultCode, adminActionRequired, messages);
}