Package de.trustable.ca3s.core.config
Class SecurityConfiguration
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- de.trustable.ca3s.core.config.SecurityConfiguration
-
- 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>
@EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled=true, securedEnabled=true) @Import(org.zalando.problem.spring.web.advice.security.SecurityProblemSupport.class) public class SecurityConfiguration extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
-
Constructor Summary
Constructors Constructor Description SecurityConfiguration(TokenProvider tokenProvider, org.springframework.web.filter.CorsFilter corsFilter, org.zalando.problem.spring.web.advice.security.SecurityProblemSupport problemSupport, DomainUserDetailsService userDetailsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)voidconfigure(org.springframework.security.config.annotation.web.builders.WebSecurity web)org.springframework.security.authentication.AuthenticationProviderdaoAuthenticationProvider()org.springframework.security.crypto.password.PasswordEncoderpasswordEncoder()org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilterspnegoAuthenticationProcessingFilter()org.springframework.security.kerberos.web.authentication.SpnegoEntryPointspnegoEntryPoint()-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
Constructor Detail
-
SecurityConfiguration
public SecurityConfiguration(TokenProvider tokenProvider, org.springframework.web.filter.CorsFilter corsFilter, org.zalando.problem.spring.web.advice.security.SecurityProblemSupport problemSupport, DomainUserDetailsService userDetailsService)
-
-
Method Detail
-
passwordEncoder
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
-
daoAuthenticationProvider
@Bean public org.springframework.security.authentication.AuthenticationProvider daoAuthenticationProvider()
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web)
- Specified by:
configurein interfaceorg.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>- Overrides:
configurein classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception- Overrides:
configurein classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter- Throws:
Exception
-
spnegoAuthenticationProcessingFilter
@Bean public org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilter spnegoAuthenticationProcessingFilter() throws Exception- Throws:
Exception
-
spnegoEntryPoint
@Bean public org.springframework.security.kerberos.web.authentication.SpnegoEntryPoint spnegoEntryPoint()
-
-