public class CharacterSetPasswordValidator extends PasswordValidator<CharacterSetPasswordValidatorCfg> implements ConfigurationChangeListener<CharacterSetPasswordValidatorCfg>
Constructor and Description |
---|
CharacterSetPasswordValidator()
Creates a new instance of this character set password validator.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(CharacterSetPasswordValidatorCfg configuration)
Applies the configuration changes to this change listener.
|
void |
finalizePasswordValidator()
Performs any finalization that might be required when this
password validator is unloaded.
|
void |
initializePasswordValidator(CharacterSetPasswordValidatorCfg configuration)
Initializes this password validator based on the information in
the provided configuration entry.
|
boolean |
isConfigurationAcceptable(PasswordValidatorCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for
this password validator.
|
boolean |
isConfigurationChangeAcceptable(CharacterSetPasswordValidatorCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is
acceptable to this change listener.
|
boolean |
passwordIsAcceptable(org.forgerock.opendj.ldap.ByteString newPassword,
Set<org.forgerock.opendj.ldap.ByteString> currentPasswords,
Operation operation,
Entry userEntry,
LocalizableMessageBuilder invalidReason)
Indicates whether the provided password is acceptable for use by
the specified user.
|
public CharacterSetPasswordValidator()
public void initializePasswordValidator(CharacterSetPasswordValidatorCfg configuration) throws org.forgerock.opendj.config.server.ConfigException
initializePasswordValidator
in class PasswordValidator<CharacterSetPasswordValidatorCfg>
configuration
- The configuration to use to initialize
this password validator.org.forgerock.opendj.config.server.ConfigException
- If an unrecoverable problem arises in
the process of performing the
initialization.public void finalizePasswordValidator()
finalizePasswordValidator
in class PasswordValidator<CharacterSetPasswordValidatorCfg>
public boolean passwordIsAcceptable(org.forgerock.opendj.ldap.ByteString newPassword, Set<org.forgerock.opendj.ldap.ByteString> currentPasswords, Operation operation, Entry userEntry, LocalizableMessageBuilder invalidReason)
passwordIsAcceptable
in class PasswordValidator<CharacterSetPasswordValidatorCfg>
newPassword
- The proposed clear-text password that
should be validated.currentPasswords
- The set of clear-text current passwords
for the user (if available). Note that
the current passwords may not always be
available, and this may not comprise
entire set of passwords currently
for the user.operation
- The operation that is being used to set
the password. It may be an add, a
modify, or a password modify operation.userEntry
- The entry for the user whose password
is being changed.invalidReason
- The buffer to which the human-readable
explanation should be appended if it is
determined that the password is not
acceptable.true
if the password is acceptable, or
false
if not.public boolean isConfigurationAcceptable(PasswordValidatorCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationAcceptable
in class PasswordValidator<CharacterSetPasswordValidatorCfg>
configuration
- The password validator configuration
for which to make the determination.unacceptableReasons
- A list that may be used to hold the
reasons that the provided
configuration is not acceptable.true
if the provided configuration is acceptable
for this password validator, or false
if not.public boolean isConfigurationChangeAcceptable(CharacterSetPasswordValidatorCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<CharacterSetPasswordValidatorCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is
acceptable, or false
if it is not.public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(CharacterSetPasswordValidatorCfg configuration)
applyConfigurationChange
in interface ConfigurationChangeListener<CharacterSetPasswordValidatorCfg>
configuration
- The new configuration containing the changes.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.