public class RandomPasswordGenerator extends PasswordGenerator<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg> implements org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg>
Constructor and Description |
---|
RandomPasswordGenerator() |
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.config.server.ConfigChangeResult |
applyConfigurationChange(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration) |
void |
finalizePasswordGenerator()
Performs any finalization work that may be necessary when this password generator is taken out of service.
|
org.forgerock.opendj.ldap.ByteString |
generatePassword(Entry userEntry)
Generates a password for the user whose account is contained in the specified entry.
|
void |
initializePasswordGenerator(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration)
Initializes this password generator based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this password generator.
|
boolean |
isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration,
List<LocalizableMessage> unacceptableReasons) |
public void initializePasswordGenerator(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
PasswordGenerator
initializePasswordGenerator
in class PasswordGenerator<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg>
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 finalizePasswordGenerator()
PasswordGenerator
finalizePasswordGenerator
in class PasswordGenerator<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg>
public org.forgerock.opendj.ldap.ByteString generatePassword(Entry userEntry) throws DirectoryException
generatePassword
in class PasswordGenerator<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg>
userEntry
- The entry for the user for whom the password is to be generated.DirectoryException
- If a problem occurs while attempting to generate the password.public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration, List<LocalizableMessage> unacceptableReasons)
PasswordGenerator
isConfigurationAcceptable
in class PasswordGenerator<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg>
configuration
- The password generator 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 generator, or false
if
not.public boolean isConfigurationChangeAcceptable(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration, List<LocalizableMessage> unacceptableReasons)
isConfigurationChangeAcceptable
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg>
public org.forgerock.opendj.config.server.ConfigChangeResult applyConfigurationChange(org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg configuration)
applyConfigurationChange
in interface org.forgerock.opendj.config.server.ConfigurationChangeListener<org.forgerock.opendj.server.config.server.RandomPasswordGeneratorCfg>
Copyright © 2010–2017 ForgeRock AS. All rights reserved.