public class DictionaryPasswordValidator extends PasswordValidator<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg>
Constructor and Description |
---|
DictionaryPasswordValidator()
Creates a new instance of this dictionary password validator.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration) |
void |
finalizePasswordValidator()
Performs any finalization that might be required when this password validator is unloaded.
|
void |
initializePasswordValidator(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration)
Initializes this password validator based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this password validator.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
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 DictionaryPasswordValidator()
public void initializePasswordValidator(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
PasswordValidator
initializePasswordValidator
in class PasswordValidator<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg>
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.InitializationException
- If a problem occurs during initialization that is not related to the server configuration.public void finalizePasswordValidator()
PasswordValidator
finalizePasswordValidator
in class PasswordValidator<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg>
public boolean passwordIsAcceptable(org.forgerock.opendj.ldap.ByteString newPassword, Set<org.forgerock.opendj.ldap.ByteString> currentPasswords, Operation operation, Entry userEntry, LocalizableMessageBuilder invalidReason)
PasswordValidator
passwordIsAcceptable
in class PasswordValidator<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg>
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(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration, List<LocalizableMessage> unacceptableReasons)
PasswordValidator
isConfigurationAcceptable
in class PasswordValidator<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg>
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(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.DictionaryPasswordValidatorCfg>
Copyright © 2010–2017 ForgeRock AS. All rights reserved.