Package org.opends.server.api
Interface AuthenticationPolicyFactory<T extends AuthenticationPolicyCfg>
- Type Parameters:
T
- The type of authentication policy configuration handled by this factory.
- All Known Implementing Classes:
LDAPPassThroughAuthenticationPolicyFactory
,PasswordPolicyFactory
public interface AuthenticationPolicyFactory<T extends AuthenticationPolicyCfg>
A factory for creating configurable authentication policies.
All implementations must have a default constructor, i.e. one that does not require and arguments.
-
Method Summary
Modifier and TypeMethodDescriptioncreateAuthenticationPolicy
(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.
-
Method Details
-
createAuthenticationPolicy
AuthenticationPolicy createAuthenticationPolicy(T configuration) throws ConfigException, InitializationException Creates a new authentication policy using the provided configuration.- Parameters:
configuration
- The configuration.- Returns:
- The new authentication policy configured using the provided configuration.
- Throws:
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.
-
isConfigurationAcceptable
Indicates whether the provided authentication policy configuration is acceptable.- Parameters:
configuration
- 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
Sets the server context.- Parameters:
serverContext
- the server context
-