T
- The type of authentication policy configuration handled by this factory.public interface AuthenticationPolicyFactory<T extends org.forgerock.opendj.server.config.server.AuthenticationPolicyCfg>
All implementations must have a default constructor, i.e. one that does not require and arguments.
Modifier and Type | Method and Description |
---|---|
AuthenticationPolicy |
createAuthenticationPolicy(T configuration)
Creates a new authentication policy using the provided configuration.
|
boolean |
isConfigurationAcceptable(T configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided authentication policy configuration is acceptable.
|
void |
setServerContext(ServerContext serverContext)
Sets the server context.
|
AuthenticationPolicy createAuthenticationPolicy(T configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
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.boolean isConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons)
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.void setServerContext(ServerContext serverContext)
serverContext
- The server context.Copyright © 2010–2017 ForgeRock AS. All rights reserved.