Package security

Class WebSecurityConfig

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
security.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 @Import(MethodSecurityConfig.class) public class WebSecurityConfig extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
Author:
Abdulin Ildar
  • Constructor Details

    • WebSecurityConfig

      public WebSecurityConfig()
  • Method Details

    • setSecurityStrategyName

      @PostConstruct protected void setSecurityStrategyName()
    • configureGlobal

      @Autowired public void configureGlobal(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception
      Throws:
      Exception
    • passwordEncoder

      @Bean public org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()
    • 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
    • httpConfigure

      protected void httpConfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity) throws Exception
      Throws:
      Exception
    • isKerberosActive

      protected boolean isKerberosActive()
    • authenticationManagerBean

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

      @Bean public org.springframework.web.filter.RequestContextFilter requestContextFilter()
    • jwtAuthenticationFilter

      @Bean public JwtAuthenticationFilter jwtAuthenticationFilter() throws Exception
      Throws:
      Exception
    • configure

      public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web) throws Exception
      Specified by:
      configure in interface org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>
      Overrides:
      configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
      Throws:
      Exception
    • certificateService

    • kerberosAuthenticationProvider

      @Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.authentication.KerberosAuthenticationProvider kerberosAuthenticationProvider(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
    • entryPoint

      public org.springframework.security.web.AuthenticationEntryPoint entryPoint()
    • spnegoAuthenticationProcessingFilter

      @Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.web.authentication.SpnegoAuthenticationProcessingFilter spnegoAuthenticationProcessingFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager)
    • kerberosUserDetailsWrapperService

      public KerberosUserDetailsWrapperService kerberosUserDetailsWrapperService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService)
    • kerberosServiceAuthenticationProvider

      @Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.authentication.KerberosServiceAuthenticationProvider kerberosServiceAuthenticationProvider(org.springframework.security.core.userdetails.UserDetailsService userDetailsService) throws FileNotFoundException
      Throws:
      FileNotFoundException
    • sunJaasKerberosTicketValidator

      @Bean @AuthMethodConditional(KERBEROS) public org.springframework.security.kerberos.authentication.sun.SunJaasKerberosTicketValidator sunJaasKerberosTicketValidator() throws FileNotFoundException
      Throws:
      FileNotFoundException