T
- The type of configuration handled by this password generator.@PublicAPI(stability=UNCOMMITTED, mayInstantiate=false, mayExtend=true, mayInvoke=false) public abstract class PasswordGenerator<T extends PasswordGeneratorCfg> extends Object
Constructor and Description |
---|
PasswordGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
finalizePasswordGenerator()
Performs any finalization work that may be necessary when this password generator is taken out of service.
|
abstract ByteString |
generatePassword(Entry userEntry)
Generates a password for the user whose account is contained in the specified entry.
|
abstract void |
initializePasswordGenerator(T configuration)
Initializes this password generator based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(T configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this password generator.
|
public abstract void initializePasswordGenerator(T configuration) throws ConfigException, InitializationException
configuration
- The configuration to use to initialize this password validator.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 boolean isConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons)
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 void finalizePasswordGenerator()
public abstract ByteString generatePassword(Entry userEntry) throws LdapException
userEntry
- The entry for the user for whom the password is to be generated.LdapException
- If a problem occurs while attempting to generate the password.Copyright 2010-2022 ForgeRock AS.