boolean adminActionRequired = false;
ArrayList<Message> messages = new ArrayList<Message>();
// Get the existing generator if it's already enabled.
PasswordGenerator existingGenerator =
passwordGenerators.get(configuration.dn());
// If the new configuration has the generator disabled, then disable it if
// it is enabled, or do nothing if it's already disabled.
if (! configuration.isEnabled())
{
if (existingGenerator != null)
{
DirectoryServer.deregisterPasswordGenerator(configuration.dn());
PasswordGenerator passwordGenerator =
passwordGenerators.remove(configuration.dn());
if (passwordGenerator != null)
{
passwordGenerator.finalizePasswordGenerator();
}
}
return new ConfigChangeResult(resultCode, adminActionRequired, messages);
}