类 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根据注册客户端ID和主体名称查找OAuth2授权同意信息voidremove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) 移除OAuth2授权同意信息voidsave(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent) 保存OAuth2授权同意信息
-
构造器详细资料
-
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
-