Class 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)  
    • 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 interface org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,​org.springframework.security.config.annotation.web.builders.WebSecurity>
        Overrides:
        configure in class org.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 class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        Exception
      • securityEvaluationContextExtension

        @Bean
        public org.springframework.security.data.repository.query.SecurityEvaluationContextExtension securityEvaluationContextExtension()