Class AuthenticationFilter.AuthenticationModuleBuilder
java.lang.Object
org.forgerock.caf.authentication.framework.AuthenticationFilter.AuthenticationModuleBuilder
- Enclosing class:
- AuthenticationFilter
Builder class that configures AsyncServerAuthModules and
ServerAuthModules.
Usage:
configureModule(authModuleOne)
.requestPolicy(authModuleOneRequestPolicy)
.responsePolicy(authModuleOneResponsePolicy)
.callbackHandler(authModuleOneHandler)
.withSettings(authModuleOneSettings);
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallbackHandler(CallbackHandler handler) Sets theCallbackHandlerthat the auth module should use.configureModule(javax.security.auth.message.module.ServerAuthModule authModule) Creates a builder to configure the providedServerAuthModuleinstance.configureModule(AsyncServerAuthModule authModule) Creates a builder to configure the providedAsyncServerAuthModuleinstance.requestPolicy(javax.security.auth.message.MessagePolicy requestPolicy) Sets the requestMessagePolicythat the auth module should use.responsePolicy(javax.security.auth.message.MessagePolicy responsePolicy) Sets the responseMessagePolicythat the auth module should use.withSettings(Map<String, Object> settings) Sets the settings that contain configuration information that the auth module will use to configure itself.
-
Constructor Details
-
AuthenticationModuleBuilder
public AuthenticationModuleBuilder()
-
-
Method Details
-
configureModule
public static AuthenticationFilter.AuthenticationModuleBuilder configureModule(AsyncServerAuthModule authModule) Creates a builder to configure the providedAsyncServerAuthModuleinstance.- Parameters:
authModule- TheAsyncServerAuthModuleinstance.- Returns:
- This auth module builder instance.
-
configureModule
public static AuthenticationFilter.AuthenticationModuleBuilder configureModule(javax.security.auth.message.module.ServerAuthModule authModule) Creates a builder to configure the providedServerAuthModuleinstance.- Parameters:
authModule- TheServerAuthModuleinstance.- Returns:
- This auth module builder instance.
-
requestPolicy
public AuthenticationFilter.AuthenticationModuleBuilder requestPolicy(javax.security.auth.message.MessagePolicy requestPolicy) Sets the requestMessagePolicythat the auth module should use.- Parameters:
requestPolicy- The requestMessagePolicy.- Returns:
- This auth module builder instance.
-
responsePolicy
public AuthenticationFilter.AuthenticationModuleBuilder responsePolicy(javax.security.auth.message.MessagePolicy responsePolicy) Sets the responseMessagePolicythat the auth module should use.- Parameters:
responsePolicy- The responseMessagePolicy.- Returns:
- This auth module builder instance.
-
callbackHandler
Sets theCallbackHandlerthat the auth module should use.- Parameters:
handler- TheCallbackHandlerinstance.- Returns:
- This auth module builder instance.
-
withSettings
Sets the settings that contain configuration information that the auth module will use to configure itself.- Parameters:
settings- The auth module settings.- Returns:
- This auth module builder instance.
-