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
,AbstractHttpConfigurer
,AnonymousConfigurer
,ChannelSecurityConfigurer
,CorsConfigurer
,CsrfConfigurer
,DaoAuthenticationConfigurer
,DefaultLoginPageConfigurer
,ExceptionHandlingConfigurer
,ExpressionUrlAuthorizationConfigurer
,FormLoginConfigurer
,GlobalAuthenticationConfigurerAdapter
,HeadersConfigurer
,HttpBasicConfigurer
,ImplicitGrantConfigurer
,InMemoryUserDetailsManagerConfigurer
,JdbcUserDetailsManagerConfigurer
,JeeConfigurer
,LdapAuthenticationProviderConfigurer
,LogoutConfigurer
,OAuth2ClientConfigurer
,OAuth2LoginConfigurer
,OAuth2ResourceServerConfigurer
,OpenIDLoginConfigurer
,PortMapperConfigurer
,RememberMeConfigurer
,RequestCacheConfigurer
,Saml2LoginConfigurer
,SecurityConfigurerAdapter
,SecurityContextConfigurer
,ServletApiConfigurer
,SessionManagementConfigurer
,UrlAuthorizationConfigurer
,UserDetailsAwareConfigurer
,UserDetailsManagerConfigurer
,UserDetailsServiceConfigurer
,WebSecurityConfigurerAdapter
,X509Configurer
public interface SecurityConfigurer<O,B extends SecurityBuilder<O>>
Allows for configuring aSecurityBuilder
. AllSecurityConfigurer
first have theirinit(SecurityBuilder)
method invoked. After allinit(SecurityBuilder)
methods have been invoked, eachconfigure(SecurityBuilder)
method is invoked.- See Also:
AbstractConfiguredSecurityBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
configure(B builder)
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.void
init(B builder)
Initialize theSecurityBuilder
.
-
-
-
Method Detail
-
init
void init(B builder) throws java.lang.Exception
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:
java.lang.Exception
-
configure
void configure(B builder) throws java.lang.Exception
Configure theSecurityBuilder
by setting the necessary properties on theSecurityBuilder
.- Parameters:
builder
-- Throws:
java.lang.Exception
-
-