Package org.powertac.visualizer.config
Class SecurityConfiguration
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- org.powertac.visualizer.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>
@Import(org.zalando.problem.spring.web.advice.security.SecurityProblemSupport.class) @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled=true, securedEnabled=true) public class SecurityConfiguration extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
-
Constructor Summary
Constructors Constructor Description SecurityConfiguration(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, io.github.jhipster.config.JHipsterProperties jHipsterProperties, org.springframework.security.web.authentication.RememberMeServices rememberMeServices, org.springframework.web.filter.CorsFilter corsFilter, org.zalando.problem.spring.web.advice.security.SecurityProblemSupport problemSupport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.github.jhipster.security.AjaxAuthenticationFailureHandler
ajaxAuthenticationFailureHandler()
io.github.jhipster.security.AjaxAuthenticationSuccessHandler
ajaxAuthenticationSuccessHandler()
io.github.jhipster.security.AjaxLogoutSuccessHandler
ajaxLogoutSuccessHandler()
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()
-
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(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, io.github.jhipster.config.JHipsterProperties jHipsterProperties, org.springframework.security.web.authentication.RememberMeServices rememberMeServices, org.springframework.web.filter.CorsFilter corsFilter, org.zalando.problem.spring.web.advice.security.SecurityProblemSupport problemSupport)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
ajaxAuthenticationSuccessHandler
@Bean public io.github.jhipster.security.AjaxAuthenticationSuccessHandler ajaxAuthenticationSuccessHandler()
-
ajaxAuthenticationFailureHandler
@Bean public io.github.jhipster.security.AjaxAuthenticationFailureHandler ajaxAuthenticationFailureHandler()
-
ajaxLogoutSuccessHandler
@Bean public io.github.jhipster.security.AjaxLogoutSuccessHandler ajaxLogoutSuccessHandler()
-
passwordEncoder
@Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception
- Specified by:
configure
in interfaceorg.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
- Overrides:
configure
in classorg.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
- Throws:
Exception
-
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
-
securityEvaluationContextExtension
@Bean public org.springframework.security.data.repository.query.SecurityEvaluationContextExtension securityEvaluationContextExtension()
-
-