类 RedisOAuth2AuthorizationConsentService

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

public class RedisOAuth2AuthorizationConsentService extends Object implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
The following listing shows the RedisOAuth2AuthorizationConsentService, which uses an OAuth2UserConsentRepository for persisting an OAuth2UserConsent and maps to and from the OAuth2AuthorizationConsent domain object, using the ModelMapper utility class.
作者:
zhanglinfeng
  • 构造器概要

    构造器
    构造器
    说明
    RedisOAuth2AuthorizationConsentService(org.springframework.data.redis.core.RedisOperations<Object,Object> redisOperations, BiscuitSecurityProperties biscuitSecurityProperties)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent
    findById(String registeredClientId, String principalName)
    根据注册客户端ID和主体名称查找OAuth2授权同意信息
    void
    remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
    移除OAuth2授权同意信息
    void
    save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
    保存OAuth2授权同意信息

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

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

    • RedisOAuth2AuthorizationConsentService

      public RedisOAuth2AuthorizationConsentService(org.springframework.data.redis.core.RedisOperations<Object,Object> redisOperations, BiscuitSecurityProperties biscuitSecurityProperties)
  • 方法详细资料

    • save

      public void save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
      保存OAuth2授权同意信息
      指定者:
      save 在接口中 org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
      参数:
      authorizationConsent - 授权同意信息,不能为null
      抛出:
      IllegalArgumentException - 当authorizationConsent为null时抛出
    • remove

      public void remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
      移除OAuth2授权同意信息
      指定者:
      remove 在接口中 org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
      参数:
      authorizationConsent - 授权同意信息,不能为null
      抛出:
      IllegalArgumentException - 当authorizationConsent为null时抛出
    • findById

      public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent findById(String registeredClientId, String principalName)
      根据注册客户端ID和主体名称查找OAuth2授权同意信息
      指定者:
      findById 在接口中 org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
      参数:
      registeredClientId - 注册客户端ID,不能为空
      principalName - 主体名称,不能为空
      返回:
      查找到的OAuth2授权同意信息,可能为null