Class ApplicationSecurityConfig

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
com.winchesters.devopsify.security.ApplicationSecurityConfig
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 ApplicationSecurityConfig extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
  • Constructor Summary

    Constructors
    Constructor
    Description
    ApplicationSecurityConfig(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, ApplicationUserService applicationUserService, JwtConfig jwtConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
     
    protected void
    configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
     
    org.springframework.web.cors.CorsConfigurationSource
     
    org.springframework.security.authentication.dao.DaoAuthenticationProvider
     
    org.springframework.web.filter.CommonsRequestLoggingFilter
     

    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

    Methods inherited from class java.lang.Object

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

    • ApplicationSecurityConfig

      @Autowired public ApplicationSecurityConfig(org.springframework.security.crypto.password.PasswordEncoder passwordEncoder, ApplicationUserService applicationUserService, JwtConfig jwtConfig)
  • Method Details

    • configure

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

      protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
      Overrides:
      configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
      Throws:
      Exception
    • daoAuthenticationProvider

      @Bean public org.springframework.security.authentication.dao.DaoAuthenticationProvider daoAuthenticationProvider()
    • requestLoggingFilter

      @Bean public org.springframework.web.filter.CommonsRequestLoggingFilter requestLoggingFilter()
    • corsConfigurationSource

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