Class WebSecurityConfig

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
transmatter.platform.administration.config.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 public class WebSecurityConfig extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
  • Field Details

    • password

      Password password
    • unauthorizedHandler

      @Autowired private JwtAuthenticationEntryPoint unauthorizedHandler
    • userDetailsService

      @Autowired private org.springframework.security.core.userdetails.UserDetailsService userDetailsService
  • Constructor Details

    • WebSecurityConfig

      public WebSecurityConfig()
  • Method Details

    • configureAuthentication

      @Autowired public void configureAuthentication(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception
      Throws:
      Exception
    • authenticationTokenFilterBean

      @Bean public JwtAuthenticationTokenFilter authenticationTokenFilterBean() throws Exception
      Throws:
      Exception
    • authenticationManagerBean

      @Bean public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean() throws Exception
      Overrides:
      authenticationManagerBean in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
      Throws:
      Exception
    • configure

      protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception
      Overrides:
      configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
      Throws:
      Exception