Class AbstractSecurityConfiguration
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- com.netgrif.application.engine.configuration.AbstractSecurityConfiguration
-
- 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:
NaeSecurityConfiguration
public abstract class AbstractSecurityConfiguration extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerAuthProperties
serverAuthProperties
protected SessionUtilsProperties
sessionUtilsProperties
-
Constructor Summary
Constructors Constructor Description AbstractSecurityConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
protected void
configureFilters(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected void
configureSession(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected void
corsEnable(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected boolean
existConfigurationHeaders()
protected abstract org.springframework.core.env.Environment
getEnvironment()
protected java.lang.String[]
getPatterns()
protected abstract SecurityConfigProperties
getSecurityConfigProperties()
protected abstract java.lang.String[]
getServerPatterns()
protected abstract java.lang.String[]
getStaticPatterns()
protected abstract boolean
isCorsEnabled()
protected abstract boolean
isCsrfEnabled()
protected abstract boolean
isOpenRegistration()
protected void
setContentSecurityPolicy(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected void
setCsrf(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected void
setHeaders(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected void
setStrictTransportSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected void
setXFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected void
setXXSSProtection(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
-
serverAuthProperties
@Autowired protected ServerAuthProperties serverAuthProperties
-
sessionUtilsProperties
@Autowired protected SessionUtilsProperties sessionUtilsProperties
-
-
Method Detail
-
setHeaders
protected void setHeaders(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setStrictTransportSecurity
protected void setStrictTransportSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setXXSSProtection
protected void setXXSSProtection(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setContentSecurityPolicy
protected void setContentSecurityPolicy(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setXFrameOptions
protected void setXFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setCsrf
protected void setCsrf(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
corsEnable
protected void corsEnable(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
configure
public void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws java.lang.Exception
- Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
java.lang.Exception
-
getPatterns
protected java.lang.String[] getPatterns()
-
configureSession
protected void configureSession(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
- Throws:
java.lang.Exception
-
configureFilters
protected void configureFilters(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
-
existConfigurationHeaders
protected boolean existConfigurationHeaders()
-
isOpenRegistration
protected abstract boolean isOpenRegistration()
-
isCsrfEnabled
protected abstract boolean isCsrfEnabled()
-
isCorsEnabled
protected abstract boolean isCorsEnabled()
-
getStaticPatterns
protected abstract java.lang.String[] getStaticPatterns()
-
getServerPatterns
protected abstract java.lang.String[] getServerPatterns()
-
getEnvironment
protected abstract org.springframework.core.env.Environment getEnvironment()
-
getSecurityConfigProperties
protected abstract SecurityConfigProperties getSecurityConfigProperties()
-
-