Class SecurityConfig
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- app.coronawarn.server.services.callback.config.SecurityConfig
-
- 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>
@Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled=true) @Profile("!disable-certificate-authentication") public class SecurityConfig extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
-
Constructor Summary
Constructors Constructor Description SecurityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
protected org.springframework.security.web.firewall.HttpFirewall
strictFirewall()
org.springframework.security.core.userdetails.UserDetailsService
userDetailsService()
We do not use UserDetails, so return stub.-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsServiceBean
-
-
-
-
Method Detail
-
strictFirewall
@Bean protected org.springframework.security.web.firewall.HttpFirewall strictFirewall()
-
configure
protected 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
-
userDetailsService
@Bean public org.springframework.security.core.userdetails.UserDetailsService userDetailsService()
We do not use UserDetails, so return stub.- Overrides:
userDetailsService
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Returns:
- UserDetailsService stub
-
-