Class OAuthTokenCachedStorage

java.lang.Object
io.meeds.oauth2.server.storage.OAuthTokenCachedStorage

@Component public class OAuthTokenCachedStorage extends Object
  • Field Details

  • 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()