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
Constructors Constructor Description LDAPPassThroughAuthenticationPolicyFactory()Public default constructor used by the admin framework.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationPolicycreateAuthenticationPolicy(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)
-
-
-
Method Detail
-
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
public void setServerContext(ServerContext serverContext)
- Specified by:
setServerContextin interfaceAuthenticationPolicyFactory<LdapPassThroughAuthenticationPolicyCfg>
-
-