Class WebSecurityConfig

  • 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>

    @Configuration
    @EnableWebSecurity
    @EnableGlobalMethodSecurity(prePostEnabled=true)
    public class WebSecurityConfig
    extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)  
      org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()  
      de.adorsys.sts.tokenauth.BearerToken getBearerToken​(javax.servlet.http.HttpServletRequest request, de.adorsys.sts.tokenauth.BearerTokenValidator bearerTokenValidator)  
      java.security.Principal getPrincipal()  
      de.adorsys.multibanking.domain.UserSecret getRequestScopeUserSecret()  
      • Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

        authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WebSecurityConfig

        public WebSecurityConfig()
    • Method Detail

      • configure

        protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
                          throws java.lang.Exception
        Overrides:
        configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        Throws:
        java.lang.Exception
      • getBearerToken

        @Bean
        @Scope(scopeName="request",
               proxyMode=TARGET_CLASS)
        public de.adorsys.sts.tokenauth.BearerToken getBearerToken​(javax.servlet.http.HttpServletRequest request,
                                                                   @Autowired(required=false)
                                                                   de.adorsys.sts.tokenauth.BearerTokenValidator bearerTokenValidator)
      • getPrincipal

        @Bean
        @Scope(scopeName="request",
               proxyMode=TARGET_CLASS)
        public java.security.Principal getPrincipal()
      • getRequestScopeUserSecret

        @Bean
        @Primary
        @Scope(scopeName="request",
               proxyMode=TARGET_CLASS)
        public de.adorsys.multibanking.domain.UserSecret getRequestScopeUserSecret()
      • corsConfigurationSource

        @Bean
        public org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()