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>

    @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
      void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)  
      void configure​(org.springframework.security.config.annotation.web.builders.WebSecurity web)  
      org.springframework.security.authentication.AuthenticationProvider daoAuthenticationProvider()  
      org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()  
      org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilter spnegoAuthenticationProcessingFilter()  
      org.springframework.security.kerberos.web.authentication.SpnegoEntryPoint spnegoEntryPoint()  
      • 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:
        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
      • configure

        public 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
      • 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()