类 BaseJwtSecurityConfigurerAdapter

java.lang.Object
org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
com.xumumi.configure.BaseJwtSecurityConfigurerAdapter
所有已实现的接口:
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>

public abstract class BaseJwtSecurityConfigurerAdapter
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
安全过滤器配置 该类实现了常用功能 可以直接通过继承此类并加上 EnableWebSecurity 来实现最基础的配置 也可以自行改用 AbstractJsonAuthenticationFilterJwtAuthenticationFilterImpl 然后自行配置
从以下版本开始:
1.9
作者:
XUMUMI
  • 构造器概要

    构造器
    构造器 说明
    BaseJwtSecurityConfigurerAdapter()  
  • 方法概要

    修饰符和类型 方法 说明
    protected abstract void configure​(BasicConfig basic, AuthorizeConfig authorize, TokenConfig token)
    配置过滤器设置方法,继承后通过重写该函数进行配置
    protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
    配置请求处理方式

    从类继承的方法 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

    authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • BaseJwtSecurityConfigurerAdapter

      public BaseJwtSecurityConfigurerAdapter()
  • 方法详细资料

    • configure

      protected abstract void configure​(BasicConfig basic, AuthorizeConfig authorize, TokenConfig token)
      配置过滤器设置方法,继承后通过重写该函数进行配置
      参数:
      basic - 基础配置
      authorize - 授权配置
      token - token 配置
      另请参阅:
      BasicConfig, AuthorizeConfig
    • configure

      protected final void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception
      配置请求处理方式
      覆盖:
      configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
      参数:
      http - 用于使用配置 http 信息
      抛出:
      Exception - 重写异常