public final class PasswordPolicyFactory extends Object implements AuthenticationPolicyFactory<org.forgerock.opendj.server.config.server.PasswordPolicyCfg>
Constructor and Description |
---|
PasswordPolicyFactory()
Default constructor instantiated from authentication policy config manager.
|
Modifier and Type | Method and Description |
---|---|
PasswordPolicy |
createAuthenticationPolicy(org.forgerock.opendj.server.config.server.PasswordPolicyCfg configuration)
Creates a new authentication policy using the provided configuration.
|
boolean |
isConfigurationAcceptable(org.forgerock.opendj.server.config.server.PasswordPolicyCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided authentication policy configuration is
acceptable.
|
void |
setServerContext(ServerContext serverContext)
Sets the server context.
|
public PasswordPolicyFactory()
public void setServerContext(ServerContext serverContext)
setServerContext
in interface AuthenticationPolicyFactory<org.forgerock.opendj.server.config.server.PasswordPolicyCfg>
serverContext
- The server context.public PasswordPolicy createAuthenticationPolicy(org.forgerock.opendj.server.config.server.PasswordPolicyCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
AuthenticationPolicyFactory
createAuthenticationPolicy
in interface AuthenticationPolicyFactory<org.forgerock.opendj.server.config.server.PasswordPolicyCfg>
configuration
- The configuration.org.forgerock.opendj.config.server.ConfigException
- If an unrecoverable problem arises during initialization of the
authentication policy as a result of the server configuration.InitializationException
- If a problem occurs during initialization of the authentication
policy.public boolean isConfigurationAcceptable(org.forgerock.opendj.server.config.server.PasswordPolicyCfg configuration, List<LocalizableMessage> unacceptableReasons)
AuthenticationPolicyFactory
isConfigurationAcceptable
in interface AuthenticationPolicyFactory<org.forgerock.opendj.server.config.server.PasswordPolicyCfg>
configuration
- The authentication policy configuration.unacceptableReasons
- A list that can be used to hold messages about why the provided
configuration is not acceptable.true
if the provided authentication policy
configuration is acceptable, or false
if it is not.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.