org.springframework.security.config.annotation
Interface SecurityConfigurer<O,B extends SecurityBuilder<O>>

Type Parameters:
O - The object being built by the SecurityBuilder B
B - The SecurityBuilder that builds objects of type O. This is also the SecurityBuilder that is being configured.
All Known Subinterfaces:
WebSecurityConfigurer<T>
All Known Implementing Classes:
AbstractAuthenticationFilterConfigurer, AbstractRequestMatcherConfigurer, AbstractRequestMatcherMappingConfigurer, AnonymousConfigurer, ChannelSecurityConfigurer, CsrfConfigurer, DaoAuthenticationConfigurer, DefaultLoginPageConfigurer, ExceptionHandlingConfigurer, ExpressionUrlAuthorizationConfigurer, FormLoginConfigurer, HeadersConfigurer, HttpBasicConfigurer, HttpSecurity.RequestMatcherConfigurer, InMemoryUserDetailsManagerConfigurer, JdbcUserDetailsManagerConfigurer, JeeConfigurer, LdapAuthenticationProviderConfigurer, LogoutConfigurer, OpenIDLoginConfigurer, PortMapperConfigurer, RememberMeConfigurer, RequestCacheConfigurer, SecurityConfigurerAdapter, SecurityContextConfigurer, ServletApiConfigurer, SessionManagementConfigurer, UrlAuthorizationConfigurer, UserDetailsAwareConfigurer, UserDetailsManagerConfigurer, UserDetailsServiceConfigurer, WebSecurity.IgnoredRequestConfigurer, 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:
AbstractConfiguredSecurityBuilder

Method Summary
 void configure(B builder)
          Configure the SecurityBuilder by setting the necessary properties on the SecurityBuilder.
 void init(B builder)
          Initialize the SecurityBuilder.
 

Method Detail

init

void init(B builder)
          throws Exception
Initialize the SecurityBuilder. Here only shared state should be created and modified, but not properties on the SecurityBuilder used for building the object. This ensures that the configure(SecurityBuilder) method uses the correct shared objects when building.

Parameters:
builder -
Throws:
Exception

configure

void configure(B builder)
               throws Exception
Configure the SecurityBuilder by setting the necessary properties on the SecurityBuilder.

Parameters:
builder -
Throws:
Exception