Interface SecurityConfigurer<O,B extends SecurityBuilder<O>>
- Type Parameters:
O
- The object being built by theSecurityBuilder
BB
- TheSecurityBuilder
that builds objects of type O. This is also theSecurityBuilder
that is being configured.
- All Known Subinterfaces:
WebSecurityConfigurer<T>
- All Known Implementing Classes:
AbstractAuthenticationFilterConfigurer
,AbstractDaoAuthenticationConfigurer
,AbstractHttpConfigurer
,AbstractInterceptUrlConfigurer
,AnonymousConfigurer
,AuthorizeHttpRequestsConfigurer
,ChannelSecurityConfigurer
,CorsConfigurer
,CsrfConfigurer
,DaoAuthenticationConfigurer
,DefaultLoginPageConfigurer
,ExceptionHandlingConfigurer
,ExpressionUrlAuthorizationConfigurer
,FormLoginConfigurer
,GlobalAuthenticationConfigurerAdapter
,HeadersConfigurer
,HttpBasicConfigurer
,InMemoryUserDetailsManagerConfigurer
,JdbcUserDetailsManagerConfigurer
,JeeConfigurer
,LdapAuthenticationProviderConfigurer
,LogoutConfigurer
,OAuth2ClientConfigurer
,OAuth2LoginConfigurer
,OAuth2ResourceServerConfigurer
,PasswordManagementConfigurer
,PortMapperConfigurer
,RememberMeConfigurer
,RequestCacheConfigurer
,Saml2LoginConfigurer
,Saml2LogoutConfigurer
,SecurityConfigurerAdapter
,SecurityContextConfigurer
,ServletApiConfigurer
,SessionManagementConfigurer
,UrlAuthorizationConfigurer
,UserDetailsAwareConfigurer
,UserDetailsManagerConfigurer
,UserDetailsServiceConfigurer
,WebSecurityConfigurerAdapter
,X509Configurer
public interface SecurityConfigurer<O,B extends SecurityBuilder<O>>
Allows for configuring a
SecurityBuilder
. All SecurityConfigurer
first
have their init(SecurityBuilder)
method invoked. After all
init(SecurityBuilder)
methods have been invoked, each
configure(SecurityBuilder)
method is invoked.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.void
Initialize theSecurityBuilder
.
-
Method Details
-
init
Initialize theSecurityBuilder
. Here only shared state should be created and modified, but not properties on theSecurityBuilder
used for building the object. This ensures that theconfigure(SecurityBuilder)
method uses the correct shared objects when building. Configurers should be applied here.- Parameters:
builder
-- Throws:
Exception
-
configure
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.- Parameters:
builder
-- Throws:
Exception
-