Class ASecurityConfig.AWebSecurityConfigurer
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- com.activeviam.risk.cfg.security.impl.ASecurityConfig.AWebSecurityConfigurer
-
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
- Direct Known Subclasses:
ActiveMonitorSecurityConfig.DefaultSecurityConfigurer
,SecurityConfig.ActivePivotSecurityConfigurer
,SecurityConfig.ContentServerSecurityConfigurer
- Enclosing class:
- ASecurityConfig
public abstract static class ASecurityConfig.AWebSecurityConfigurer extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Common configuration forHttpSecurity
.- Author:
- ActiveViam
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.context.ApplicationContext
context
protected String
cookieName
The name of the cookie to clearprotected org.springframework.core.env.Environment
env
protected boolean
logout
true
to enable the logout URL
-
Constructor Summary
Constructors Constructor Description AWebSecurityConfigurer()
This constructor does not enable the logout URLAWebSecurityConfigurer(String cookieName)
This constructor enables the logout URL
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected abstract void
doConfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
Field Detail
-
logout
protected final boolean logout
true
to enable the logout URL
-
cookieName
protected final String cookieName
The name of the cookie to clear
-
env
@Autowired protected org.springframework.core.env.Environment env
-
context
@Autowired protected org.springframework.context.ApplicationContext context
-
-
Constructor Detail
-
AWebSecurityConfigurer
public AWebSecurityConfigurer()
This constructor does not enable the logout URL
-
AWebSecurityConfigurer
public AWebSecurityConfigurer(String cookieName)
This constructor enables the logout URL- Parameters:
cookieName
- the name of the cookie to clear
-
-
Method Detail
-
configure
protected final void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
- Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
doConfigure
protected abstract void doConfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
- Parameters:
http
- HttpSecurity- Throws:
Exception
- exception- See Also:
configure(HttpSecurity)
-
-