throws ConfigException, InitializationException
{
// Get the root configuration object.
ServerManagementContext managementContext =
ServerManagementContext.getInstance();
RootCfg rootConfiguration =
managementContext.getRootConfiguration();
// Register as an add and delete listener with the root configuration so we
// can be notified if any password validator entries are added or removed.
rootConfiguration.addPasswordValidatorAddListener(this);
rootConfiguration.addPasswordValidatorDeleteListener(this);
//Initialize the existing password validators.
for (String validatorName : rootConfiguration.listPasswordValidators())
{
PasswordValidatorCfg validatorConfiguration =
rootConfiguration.getPasswordValidator(validatorName);
validatorConfiguration.addChangeListener(this);
if (validatorConfiguration.isEnabled())
{
String className = validatorConfiguration.getJavaClass();