|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration
@Configuration public class WebSecurityConfiguration
Uses a WebSecurity
to create the FilterChainProxy
that
performs the web based security for Spring Security. It then exports the
necessary beans. Customizations can be made to WebSecurity
by
extending WebSecurityConfigurerAdapter
and exposing it as a
Configuration
or implementing WebSecurityConfigurer
and
exposing it as a Configuration
. This configuration is imported when
using EnableWebSecurity
.
EnableWebSecurity
,
WebSecurity
Constructor Summary | |
---|---|
WebSecurityConfiguration()
|
Method Summary | |
---|---|
WebInvocationPrivilegeEvaluator |
privilegeEvaluator()
Creates the WebInvocationPrivilegeEvaluator that is necessary for the JSP tag support. |
void |
setBeanClassLoader(ClassLoader classLoader)
|
void |
setFilterChainProxySecurityConfigurer(List<SecurityConfigurer<javax.servlet.Filter,WebSecurity>> webSecurityConfigurers)
Sets the <SecurityConfigurer<FilterChainProxy, WebSecurityBuilder> instances used to create the web configuration. |
void |
setImportMetadata(AnnotationMetadata importMetadata)
|
javax.servlet.Filter |
springSecurityFilterChain()
Creates the Spring Security Filter Chain |
SecurityExpressionHandler<FilterInvocation> |
webSecurityExpressionHandler()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebSecurityConfiguration()
Method Detail |
---|
@Bean @DependsOn(value="springSecurityFilterChain") public SecurityExpressionHandler<FilterInvocation> webSecurityExpressionHandler()
@Bean(name="springSecurityFilterChain") public javax.servlet.Filter springSecurityFilterChain() throws Exception
Exception
@Bean @DependsOn(value="springSecurityFilterChain") public WebInvocationPrivilegeEvaluator privilegeEvaluator() throws Exception
WebInvocationPrivilegeEvaluator
that is necessary for the JSP tag support.
WebInvocationPrivilegeEvaluator
Exception
@Autowired(required=false) public void setFilterChainProxySecurityConfigurer(List<SecurityConfigurer<javax.servlet.Filter,WebSecurity>> webSecurityConfigurers) throws Exception
<SecurityConfigurer<FilterChainProxy, WebSecurityBuilder>
instances used to create the web configuration.
webSecurityConfigurers
- the <SecurityConfigurer<FilterChainProxy, WebSecurityBuilder>
instances used to create the web configuration
Exception
public void setImportMetadata(AnnotationMetadata importMetadata)
setImportMetadata
in interface ImportAware
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |