Class WebSecurityConfig

java.lang.Object
de.adorsys.sts.servicecomponentexample.WebSecurityConfig

@Configuration @EnableWebSecurity public class WebSecurityConfig extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.security.authentication.AuthenticationManager
    configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
     
    org.springframework.web.filter.CorsFilter
     
     
    protected org.springframework.security.web.SecurityFilterChain
    securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, TokenAuthenticationService tokenAuthenticationService, org.springframework.security.authentication.AuthenticationManager authManager)
     

    Methods inherited from class java.lang.Object

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

    • WebSecurityConfig

      public WebSecurityConfig()
  • Method Details

    • securityFilterChain

      @Bean protected org.springframework.security.web.SecurityFilterChain securityFilterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http, TokenAuthenticationService tokenAuthenticationService, org.springframework.security.authentication.AuthenticationManager authManager) throws Exception
      Throws:
      Exception
    • configure

      @Bean protected org.springframework.security.authentication.AuthenticationManager configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
      Throws:
      Exception
    • getPrincipal

      @Bean @Scope(scopeName="request", proxyMode=TARGET_CLASS) public Principal getPrincipal()
    • corsFilter

      @Bean public org.springframework.web.filter.CorsFilter corsFilter()