public static final class AuthenticationFilter.AuthenticationModuleBuilder extends Object
Builder class that configures AsyncServerAuthModule
s and
ServerAuthModule
s.
Usage:
configureModule(authModuleOne)
.requestPolicy(authModuleOneRequestPolicy)
.responsePolicy(authModuleOneResponsePolicy)
.callbackHandler(authModuleOneHandler)
.withSettings(authModuleOneSettings);
Constructor and Description |
---|
AuthenticationModuleBuilder() |
Modifier and Type | Method and Description |
---|---|
AuthenticationFilter.AuthenticationModuleBuilder |
callbackHandler(CallbackHandler handler)
Sets the
CallbackHandler that the auth module should use. |
static AuthenticationFilter.AuthenticationModuleBuilder |
configureModule(AsyncServerAuthModule authModule)
Creates a builder to configure the provided
AsyncServerAuthModule instance. |
static AuthenticationFilter.AuthenticationModuleBuilder |
configureModule(javax.security.auth.message.module.ServerAuthModule authModule)
Creates a builder to configure the provided
ServerAuthModule instance. |
AuthenticationFilter.AuthenticationModuleBuilder |
requestPolicy(javax.security.auth.message.MessagePolicy requestPolicy)
Sets the request
MessagePolicy that the auth module should use. |
AuthenticationFilter.AuthenticationModuleBuilder |
responsePolicy(javax.security.auth.message.MessagePolicy responsePolicy)
Sets the response
MessagePolicy that the auth module should use. |
AuthenticationFilter.AuthenticationModuleBuilder |
withSettings(Map<String,Object> settings)
Sets the settings that contain configuration information that the auth module will use
to configure itself.
|
public static AuthenticationFilter.AuthenticationModuleBuilder configureModule(AsyncServerAuthModule authModule)
AsyncServerAuthModule
instance.authModule
- The AsyncServerAuthModule
instance.public static AuthenticationFilter.AuthenticationModuleBuilder configureModule(javax.security.auth.message.module.ServerAuthModule authModule)
ServerAuthModule
instance.authModule
- The ServerAuthModule
instance.public AuthenticationFilter.AuthenticationModuleBuilder requestPolicy(javax.security.auth.message.MessagePolicy requestPolicy)
MessagePolicy
that the auth module should use.requestPolicy
- The request MessagePolicy
.public AuthenticationFilter.AuthenticationModuleBuilder responsePolicy(javax.security.auth.message.MessagePolicy responsePolicy)
MessagePolicy
that the auth module should use.responsePolicy
- The response MessagePolicy
.public AuthenticationFilter.AuthenticationModuleBuilder callbackHandler(CallbackHandler handler)
CallbackHandler
that the auth module should use.handler
- The CallbackHandler
instance.public AuthenticationFilter.AuthenticationModuleBuilder withSettings(Map<String,Object> settings)
settings
- The auth module settings.Copyright © 2010-2020, ForgeRock All Rights Reserved.