Package io.meeds.oauth2.server.storage
Class OAuthTokenCachedStorage
java.lang.Object
io.meeds.oauth2.server.storage.OAuthTokenCachedStorage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.springframework.security.oauth2.server.authorization.OAuth2Authorizationorg.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)
-
Field Details
-
CACHE_NAME
- See Also:
-
-
Constructor Details
-
OAuthTokenCachedStorage
public OAuthTokenCachedStorage()
-
-
Method Details
-
save
@CacheEvict(cacheNames="oauth.tokens", allEntries=true) public void save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization) -
remove
@CacheEvict(cacheNames="oauth.tokens", allEntries=true) public void remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization) -
findById
@Cacheable("oauth.tokens") public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findById(String id) -
findByToken
@Cacheable(cacheNames="oauth.tokens", key="{#root.args[0], #root.args[1]}") public org.springframework.security.oauth2.server.authorization.OAuth2Authorization findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType) -
evictCache
@CacheEvict(cacheNames="oauth.tokens", allEntries=true) public void evictCache() -
getHmacKey
-