类 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.OAuth2AuthorizationfindByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType) voidremove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization) voidsave(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization) Saves theOAuth2Authorization.
-
构造器详细资料
-
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 theOAuth2Authorization.- 指定者:
save在接口中org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationService- 参数:
authorization- theOAuth2Authorization
-
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
-