Package org.opends.server.extensions
Class LDAPPassThroughAuthenticationPolicyFactory
java.lang.Object
org.opends.server.extensions.LDAPPassThroughAuthenticationPolicyFactory
- All Implemented Interfaces:
AuthenticationPolicyFactory<LdapPassThroughAuthenticationPolicyCfg>
public final class LDAPPassThroughAuthenticationPolicyFactory
extends Object
implements AuthenticationPolicyFactory<LdapPassThroughAuthenticationPolicyCfg>
LDAP pass through authentication policy implementation.
-
Constructor Summary
ConstructorDescriptionPublic default constructor used by the admin framework. -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthenticationPolicy
(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.
-
Constructor Details
-
LDAPPassThroughAuthenticationPolicyFactory
public LDAPPassThroughAuthenticationPolicyFactory()Public default constructor used by the admin framework.
-
-
Method Details
-
createAuthenticationPolicy
public AuthenticationPolicy createAuthenticationPolicy(LdapPassThroughAuthenticationPolicyCfg configuration) throws InitializationException Description copied from interface:AuthenticationPolicyFactory
Creates a new authentication policy using the provided configuration.- Specified by:
createAuthenticationPolicy
in interfaceAuthenticationPolicyFactory<LdapPassThroughAuthenticationPolicyCfg>
- Parameters:
configuration
- The configuration.- Returns:
- The new authentication policy configured using the provided configuration.
- Throws:
InitializationException
- If a problem occurs during initialization of the authentication policy.
-
isConfigurationAcceptable
public boolean isConfigurationAcceptable(LdapPassThroughAuthenticationPolicyCfg cfg, List<LocalizableMessage> unacceptableReasons) Description copied from interface:AuthenticationPolicyFactory
Indicates whether the provided authentication policy configuration is acceptable.- Specified by:
isConfigurationAcceptable
in interfaceAuthenticationPolicyFactory<LdapPassThroughAuthenticationPolicyCfg>
- Parameters:
cfg
- The authentication policy configuration.unacceptableReasons
- A list that can be used to hold messages about why the provided configuration is not acceptable.- Returns:
- Returns
true
if the provided authentication policy configuration is acceptable, orfalse
if it is not.
-
setServerContext
Description copied from interface:AuthenticationPolicyFactory
Sets the server context.- Specified by:
setServerContext
in interfaceAuthenticationPolicyFactory<LdapPassThroughAuthenticationPolicyCfg>
- Parameters:
serverContext
- the server context
-