public final class LDAPPassThroughAuthenticationPolicyFactory extends Object implements AuthenticationPolicyFactory<LDAPPassThroughAuthenticationPolicyCfg>
Constructor and Description |
---|
LDAPPassThroughAuthenticationPolicyFactory()
Public default constructor used by the admin framework.
|
Modifier and Type | Method and Description |
---|---|
AuthenticationPolicy |
createAuthenticationPolicy(LDAPPassThroughAuthenticationPolicyCfg configuration)
Creates a new authentication policy using the provided configuration.
|
boolean |
isConfigurationAcceptable(LDAPPassThroughAuthenticationPolicyCfg cfg,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided authentication policy configuration is
acceptable.
|
void |
setServerContext(ServerContext serverContext)
Sets the server context.
|
public LDAPPassThroughAuthenticationPolicyFactory()
public void setServerContext(ServerContext serverContext)
setServerContext
in interface AuthenticationPolicyFactory<LDAPPassThroughAuthenticationPolicyCfg>
serverContext
- The server context.public AuthenticationPolicy createAuthenticationPolicy(LDAPPassThroughAuthenticationPolicyCfg configuration) throws org.forgerock.opendj.config.server.ConfigException, InitializationException
createAuthenticationPolicy
in interface AuthenticationPolicyFactory<LDAPPassThroughAuthenticationPolicyCfg>
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(LDAPPassThroughAuthenticationPolicyCfg cfg, List<LocalizableMessage> unacceptableReasons)
isConfigurationAcceptable
in interface AuthenticationPolicyFactory<LDAPPassThroughAuthenticationPolicyCfg>
cfg
- 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-2016 ForgeRock AS. All Rights Reserved.