T
- The type of authentication policy configuration handled by this factory.public interface AuthenticationPolicyFactory<T extends AuthenticationPolicyCfg>
All implementations must have a default constructor, i.e. one that does not require and arguments.
Modifier and Type | Method and Description |
---|---|
AuthenticationPolicy |
createAuthenticationPolicy(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.
|
AuthenticationPolicy createAuthenticationPolicy(T configuration) throws ConfigException, InitializationException
configuration
- The configuration.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.boolean isConfigurationAcceptable(T configuration, List<LocalizableMessage> unacceptableReasons)
configuration
- 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-2022 ForgeRock AS.