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
ConstructorsConstructorDescriptionPublic default constructor used by the admin framework. -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthenticationPolicy(LdapPassThroughAuthenticationPolicyCfg configuration) Creates a new authentication policy using the provided configuration.booleanisConfigurationAcceptable(LdapPassThroughAuthenticationPolicyCfg cfg, List<LocalizableMessage> unacceptableReasons) Indicates whether the provided authentication policy configuration is acceptable.voidsetServerContext(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:AuthenticationPolicyFactoryCreates a new authentication policy using the provided configuration.- Specified by:
createAuthenticationPolicyin 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:AuthenticationPolicyFactoryIndicates whether the provided authentication policy configuration is acceptable.- Specified by:
isConfigurationAcceptablein 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
trueif the provided authentication policy configuration is acceptable, orfalseif it is not.
-
setServerContext
Description copied from interface:AuthenticationPolicyFactorySets the server context.- Specified by:
setServerContextin interfaceAuthenticationPolicyFactory<LdapPassThroughAuthenticationPolicyCfg>- Parameters:
serverContext- the server context
-