The corresponding sequence is also used for the web security and authentication manager settings.
@ExtensionPoint public interface SecurityConfigurationConfigurer extends ConfigurationConfigurer<SecurityConfigurationBuilder>
Interface for beans that customize the default web security.
This interface is slightly different to a standard ConfigurationConfigurer
as the implementation
provides default security configurations which can be adjusted using the pre- and post- configuration
methods. The configure(SecurityConfigurationBuilder)
method can be used to disable the
default settings completely if required. The execution order is as follows:
if HTTP security defaults are enabled, add default configuration
postConfigureHttpSecurity(HttpSecurity)
The corresponding sequence is also used for the web security and authentication manager settings.
NOTE: if the defaults are disabled you can set your full configuration in either the pre- or post- method.
For information on how to use this interface to customize your application please
refer to the ConfigurationConfigurer
documentation.
Modifier and Type | Field and Description |
---|---|
static int |
CONFIGURATION_ORDER |
Modifier and Type | Method and Description |
---|---|
default void |
configure(SecurityConfigurationBuilder configurationBuilder)
Allows the security configuration default settings to be disabled.
|
default void |
postConfigureAuthenticationManagerBuilder(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder)
Allows the authentication manager configuration to be adjusted before the default settings are applied.
|
default void |
postConfigureHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
Allows the HTTP security configuration to be adjusted before the default settings are applied.
|
default void |
postConfigureWebSecurity(org.springframework.security.config.annotation.web.builders.WebSecurity webSecurity)
Allows the web security configuration to be adjusted before the default settings are applied.
|
default void |
preConfigureAuthenticationManagerBuilder(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder)
Allows the authentication manager configuration to be adjusted before the default settings are applied.
|
default void |
preConfigureHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
Allows the HTTP security configuration to be adjusted before the default settings are applied.
|
default void |
preConfigureWebSecurity(org.springframework.security.config.annotation.web.builders.WebSecurity webSecurity)
Allows the web security configuration to be adjusted before the default settings are applied.
|
static final int CONFIGURATION_ORDER
default void configure(SecurityConfigurationBuilder configurationBuilder)
Allows the security configuration default settings to be disabled.
There is no need to override this method if you don’t nee
configure
in interface ConfigurationConfigurer<SecurityConfigurationBuilder>
configurationBuilder
- a SecurityConfigurationBuilder
default void preConfigureWebSecurity(org.springframework.security.config.annotation.web.builders.WebSecurity webSecurity) throws Exception
Allows the web security configuration to be adjusted before the default settings are applied.
webSecurity
- the WebSecurity
reference to be configuredException
- if the configuration faileddefault void preConfigureHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception
Allows the HTTP security configuration to be adjusted before the default settings are applied.
httpSecurity
- the HttpSecurity
reference to be configuredException
- if the configuration faileddefault void preConfigureAuthenticationManagerBuilder(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception
Allows the authentication manager configuration to be adjusted before the default settings are applied.
authenticationManagerBuilder
- the AuthenticationManagerBuilder
reference to be configuredException
- if the configuration faileddefault void postConfigureWebSecurity(org.springframework.security.config.annotation.web.builders.WebSecurity webSecurity) throws Exception
Allows the web security configuration to be adjusted before the default settings are applied.
webSecurity
- the WebSecurity
reference to be configuredException
- if the configuration faileddefault void postConfigureHttpSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception
Allows the HTTP security configuration to be adjusted before the default settings are applied.
httpSecurity
- the HttpSecurity
reference to be configuredException
- if the configuration faileddefault void postConfigureAuthenticationManagerBuilder(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception
Allows the authentication manager configuration to be adjusted before the default settings are applied.
authenticationManagerBuilder
- the AuthenticationManagerBuilder
reference to be configuredException
- if the configuration failedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.