public class UniqueCharactersPasswordValidator extends PasswordValidator<org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg>
| Constructor and Description |
|---|
UniqueCharactersPasswordValidator()
Creates a new instance of this unique characters password validator.
|
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg configuration) |
void |
finalizePasswordValidator()
Performs any finalization that might be required when this
password validator is unloaded.
|
void |
initializePasswordValidator(org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg configuration)
Initializes this password validator based on the information in
the provided configuration entry.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons) |
boolean |
passwordIsAcceptable(org.forgerock.opendj.ldap.ByteString newPassword,
Set<org.forgerock.opendj.ldap.ByteString> currentPasswords,
Operation operation,
Entry userEntry,
org.forgerock.i18n.LocalizableMessageBuilder invalidReason)
Indicates whether the provided password is acceptable for use by
the specified user.
|
isConfigurationAcceptablepublic UniqueCharactersPasswordValidator()
public void initializePasswordValidator(org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg configuration)
PasswordValidatorinitializePasswordValidator in class PasswordValidator<org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg>configuration - The configuration to use to initialize
this password validator.public void finalizePasswordValidator()
PasswordValidatorfinalizePasswordValidator in class PasswordValidator<org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg>public boolean passwordIsAcceptable(org.forgerock.opendj.ldap.ByteString newPassword,
Set<org.forgerock.opendj.ldap.ByteString> currentPasswords,
Operation operation,
Entry userEntry,
org.forgerock.i18n.LocalizableMessageBuilder invalidReason)
PasswordValidatorpasswordIsAcceptable in class PasswordValidator<org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg>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 isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg configuration,
List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg>public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg configuration)
applyConfigurationChange in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.UniqueCharactersPasswordValidatorCfg>Copyright © 2010-2020 Wren Security. All Rights Reserved.