类 RedisOAuth2AuthorizationService

java.lang.Object
cn.bbwres.biscuit.security.oauth2.service.redis.RedisOAuth2AuthorizationService
所有已实现的接口:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService

public class RedisOAuth2AuthorizationService extends Object implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
作者:
zhanglinfeng
  • 构造器概要

    构造器
    构造器
    说明
    RedisOAuth2AuthorizationService(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, org.springframework.data.redis.core.RedisOperations<Object,Object> redisOperations, BiscuitSecurityProperties biscuitSecurityProperties)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    org.springframework.security.oauth2.server.authorization.OAuth2Authorization
    根据tokenId查询数据
    org.springframework.security.oauth2.server.authorization.OAuth2Authorization
    findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType)
     
    void
    remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
     
    void
    save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
    Saves the OAuth2Authorization.

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

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

    • RedisOAuth2AuthorizationService

      public RedisOAuth2AuthorizationService(org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository registeredClientRepository, org.springframework.data.redis.core.RedisOperations<Object,Object> redisOperations, BiscuitSecurityProperties biscuitSecurityProperties)
  • 方法详细资料

    • save

      public void save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
      Saves the OAuth2Authorization.
      指定者:
      save 在接口中 org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
      参数:
      authorization - the OAuth2Authorization
    • remove

      public void remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
      指定者:
      remove 在接口中 org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
    • findById

      @Nullable public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById(String id)
      根据tokenId查询数据
      指定者:
      findById 在接口中 org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService
      参数:
      id - the authorization identifier
      返回:
    • findByToken

      @Nullable public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType)
      指定者:
      findByToken 在接口中 org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService