类 PKITokenEndpointConfigurer

java.lang.Object
io.github.mangocrisp.spring.taybct.auth.security.granter.pki.PKITokenEndpointConfigurer
所有已实现的接口:
IOtherTokenEndpointConfigurer, org.springframework.security.config.Customizer<org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenEndpointConfigurer>

public class PKITokenEndpointConfigurer extends Object implements IOtherTokenEndpointConfigurer
PKI的授权码鉴权配置
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    (专用程序包) final org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
    鉴权管理,可以从这里根据刷新 token 获取新的 token 什么的
    static final org.springframework.security.oauth2.core.AuthorizationGrantType
     
    (专用程序包) final org.springframework.security.crypto.password.PasswordEncoder
     
    (专用程序包) final io.github.mangocrisp.spring.taybct.tool.pki.prop.PKIProp
    PKI 配置
    private final org.springframework.data.redis.core.StringRedisTemplate
    用于查找缓存 code
    (专用程序包) final org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token>
     
    (专用程序包) final Function<String,org.springframework.security.core.userdetails.UserDetails>
    根据身份证号查找用户
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    customize(org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenEndpointConfigurer oAuth2TokenEndpointConfigurer)
     
    boolean
    refreshSupport(org.springframework.security.oauth2.server.authorization.OAuth2Authorization oAuth2Authorization)
    是否支持刷新模式

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

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    从接口继承的方法 io.github.mangocrisp.spring.taybct.auth.security.granter.IOtherTokenEndpointConfigurer

    way2FindUserInRefreshModel
  • 字段详细资料

    • GRANT_TYPE

      public static final org.springframework.security.oauth2.core.AuthorizationGrantType GRANT_TYPE
    • passwordEncoder

      final org.springframework.security.crypto.password.PasswordEncoder passwordEncoder
    • tokenGenerator

      final org.springframework.security.oauth2.server.authorization.token.OAuth2TokenGenerator<? extends org.springframework.security.oauth2.core.OAuth2Token> tokenGenerator
    • authorizationService

      final org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService authorizationService
      鉴权管理,可以从这里根据刷新 token 获取新的 token 什么的
    • pkiProp

      final io.github.mangocrisp.spring.taybct.tool.pki.prop.PKIProp pkiProp
      PKI 配置
    • redisTemplate

      private final org.springframework.data.redis.core.StringRedisTemplate redisTemplate
      用于查找缓存 code
    • userFinder

      final Function<String,org.springframework.security.core.userdetails.UserDetails> userFinder
      根据身份证号查找用户
  • 构造器详细资料

    • PKITokenEndpointConfigurer

      public PKITokenEndpointConfigurer()
  • 方法详细资料

    • customize

      public void customize(org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenEndpointConfigurer oAuth2TokenEndpointConfigurer)
      指定者:
      customize 在接口中 org.springframework.security.config.Customizer<org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2TokenEndpointConfigurer>
    • refreshSupport

      public boolean refreshSupport(org.springframework.security.oauth2.server.authorization.OAuth2Authorization oAuth2Authorization)
      从接口复制的说明: IOtherTokenEndpointConfigurer
      是否支持刷新模式
      指定者:
      refreshSupport 在接口中 IOtherTokenEndpointConfigurer
      参数:
      oAuth2Authorization - token 授权信息,鉴权之后的结果之类的,存储了用户鉴权相关的信息
      返回:
      boolean