类 SecurityConfigure

  • 所有已实现的接口:
    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
    @EnableGlobalMethodSecurity(prePostEnabled=true)
    public class SecurityConfigure
    extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
    • 构造器概要

      构造器 
      构造器 说明
      SecurityConfigure​(org.springframework.security.core.userdetails.UserDetailsService userDetailsService, JwtAuthEntryPoint unauthorizedHandler)  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      AuthTokenFilterService authenticationJwtTokenFilter()  
      org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()  
      void configure​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder)  
      protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)  
      org.springframework.security.crypto.password.PasswordEncoder passwordEncoder()  
      • 从类继承的方法 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

        authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
    • 构造器详细资料

      • SecurityConfigure

        public SecurityConfigure​(org.springframework.security.core.userdetails.UserDetailsService userDetailsService,
                                 JwtAuthEntryPoint unauthorizedHandler)
    • 方法详细资料

      • configure

        public void configure​(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder authenticationManagerBuilder)
                       throws Exception
        覆盖:
        configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        抛出:
        Exception
      • authenticationManagerBean

        @Bean
        public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
                                                                                                    throws Exception
        覆盖:
        authenticationManagerBean 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        抛出:
        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
        覆盖:
        configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        抛出:
        Exception