@Configuration @ConditionalOnWebApplication @EnableConfigurationProperties @ConditionalOnClass(value={org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer.class,org.springframework.security.config.http.SessionCreationPolicy.class}) public class SecurityFilterAutoConfiguration extends Object
Auto-configuration
for Spring Security's Filter.
Configured separately from SpringBootWebSecurityConfiguration
to ensure that
the filter's order is still configured when a user-provided
WebSecurityConfiguration
exists.Constructor and Description |
---|
SecurityFilterAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DelegatingFilterProxyRegistrationBean |
securityFilterChainRegistration(SecurityProperties securityProperties) |
SecurityProperties |
securityProperties() |
@Bean @ConditionalOnBean(name="springSecurityFilterChain") public DelegatingFilterProxyRegistrationBean securityFilterChainRegistration(SecurityProperties securityProperties)
@Bean @ConditionalOnMissingBean public SecurityProperties securityProperties()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.