@Configuration
@Import(value=org.zalando.problem.spring.web.advice.security.SecurityProblemSupport.class)
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled=true,
securedEnabled=true)
public class SecurityConfiguration
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Constructor and Description |
---|
SecurityConfiguration(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder,
org.springframework.security.core.userdetails.UserDetailsService userDetailsService,
TokenProvider tokenProvider,
org.springframework.web.filter.CorsFilter corsFilter,
org.zalando.problem.spring.web.advice.security.SecurityProblemSupport problemSupport) |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
void |
configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) |
void |
init() |
org.springframework.security.crypto.password.PasswordEncoder |
passwordEncoder() |
org.springframework.security.data.repository.query.SecurityEvaluationContextExtension |
securityEvaluationContextExtension() |
authenticationManager, authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
public SecurityConfiguration(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, TokenProvider tokenProvider, org.springframework.web.filter.CorsFilter corsFilter, org.zalando.problem.spring.web.advice.security.SecurityProblemSupport problemSupport)
@PostConstruct public void init()
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws java.lang.Exception
configure
in interface org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
java.lang.Exception
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.Exception
configure
in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
java.lang.Exception
@Bean public org.springframework.security.data.repository.query.SecurityEvaluationContextExtension securityEvaluationContextExtension()
Copyright © 2017 Osgiliath. All rights reserved.