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 ServerAuthPropertiesserverAuthPropertiesprotected SessionUtilsPropertiessessionUtilsProperties
-
Constructor Summary
Constructors Constructor Description AbstractSecurityConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)protected voidconfigureFilters(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected voidconfigureSession(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected voidcorsEnable(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected booleanexistConfigurationHeaders()protected abstract org.springframework.core.env.EnvironmentgetEnvironment()protected java.lang.String[]getPatterns()protected abstract SecurityConfigPropertiesgetSecurityConfigProperties()protected abstract java.lang.String[]getServerPatterns()protected abstract java.lang.String[]getStaticPatterns()protected abstract booleanisCorsEnabled()protected abstract booleanisCsrfEnabled()protected abstract booleanisOpenRegistration()protected voidsetContentSecurityPolicy(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected voidsetCsrf(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected voidsetHeaders(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected voidsetStrictTransportSecurity(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected voidsetXFrameOptions(org.springframework.security.config.annotation.web.builders.HttpSecurity http)protected voidsetXXSSProtection(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:
configurein 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()
-
-