Class SecurityConfigurerAdapter<O,B extends SecurityBuilder<O>> 
java.lang.Object
org.springframework.security.config.annotation.SecurityConfigurerAdapter<O,B> 
- Type Parameters:
 O- The Object being built by BB- The Builder that is building O and is configured bySecurityConfigurerAdapter
- All Implemented Interfaces:
 SecurityConfigurer<O,B> 
- Direct Known Subclasses:
 AbstractHttpConfigurer,LdapAuthenticationProviderConfigurer,UserDetailsAwareConfigurer
public abstract class SecurityConfigurerAdapter<O,B extends SecurityBuilder<O>> 
extends Object
implements SecurityConfigurer<O,B> 
A base class for 
SecurityConfigurer that allows subclasses to only implement
 the methods they are interested in. It also provides a mechanism for using the
 SecurityConfigurer and when done gaining access to the SecurityBuilder
 that is being configured.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddObjectPostProcessor(ObjectPostProcessor<?> objectPostProcessor) Adds anObjectPostProcessorto be used for thisSecurityConfigurerAdapter.voidConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.protected final BGets theSecurityBuilder.voidInitialize theSecurityBuilder.protected <T> TpostProcess(T object) Performs post processing of an object.voidsetBuilder(B builder) Sets theSecurityBuilderto be used. 
- 
Constructor Details
- 
SecurityConfigurerAdapter
public SecurityConfigurerAdapter() 
 - 
 - 
Method Details
- 
init
Description copied from interface:SecurityConfigurerInitialize theSecurityBuilder. Here only shared state should be created and modified, but not properties on theSecurityBuilderused for building the object. This ensures that theSecurityConfigurer.configure(SecurityBuilder)method uses the correct shared objects when building. Configurers should be applied here.- Specified by:
 initin interfaceSecurityConfigurer<O,B extends SecurityBuilder<O>> 
 - 
configure
Description copied from interface:SecurityConfigurerConfigure theSecurityBuilderby setting the necessary properties on theSecurityBuilder.- Specified by:
 configurein interfaceSecurityConfigurer<O,B extends SecurityBuilder<O>> 
 - 
getBuilder
Gets theSecurityBuilder. Cannot be null.- Returns:
 - the 
SecurityBuilder - Throws:
 IllegalStateException- ifSecurityBuilderis null
 - 
postProcess
protected <T> T postProcess(T object) Performs post processing of an object. The default is to delegate to theObjectPostProcessor.- Parameters:
 object- the Object to post process- Returns:
 - the possibly modified Object to use
 
 - 
addObjectPostProcessor
Adds anObjectPostProcessorto be used for thisSecurityConfigurerAdapter. The default implementation does nothing to the object.- Parameters:
 objectPostProcessor- theObjectPostProcessorto use
 - 
setBuilder
Sets theSecurityBuilderto be used. This is automatically set when usingAbstractConfiguredSecurityBuilder.with(SecurityConfigurerAdapter, Customizer)- Parameters:
 builder- theSecurityBuilderto set
 
 -