|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.api.PasswordGenerator<T>
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>
This class defines a set of methods and structures that must be implemented by a Directory Server module that may be used to generate user passwords. The password generator is included as part of a password policy, and is used by the password modify extended operation to construct a new password for the user if that option is chosen.
Constructor Summary | |
---|---|
PasswordGenerator()
|
Method Summary | |
---|---|
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(PasswordGeneratorCfg configuration,
java.util.List<Message> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this password generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswordGenerator()
Method Detail |
---|
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(PasswordGeneratorCfg configuration, java.util.List<Message> 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 DirectoryException
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |