java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
org.eco.mubisoft.good_and_cheap.application.security.SecurityConfig
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 SecurityConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
  • Field Summary

    Fields
    Modifier and Type Field Description
    private org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder passwordEncoder  
    private org.springframework.security.core.userdetails.UserDetailsService userDetailsService  
  • Constructor Summary

    Constructors
    Constructor Description
    SecurityConfig()  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()  
    protected void configure​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)  
    protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)  

    Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

    authenticationManager, 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
  • Field Details

    • userDetailsService

      private final org.springframework.security.core.userdetails.UserDetailsService userDetailsService
    • passwordEncoder

      private final org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder passwordEncoder
  • Constructor Details

    • SecurityConfig

      public SecurityConfig()
  • Method Details

    • configure

      protected void configure​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws java.lang.Exception
      Overrides:
      configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
      Throws:
      java.lang.Exception
    • 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
    • authenticationManagerBean

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