Class OAuthTokenCachedStorage

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

@Component public class OAuthTokenCachedStorage extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.springframework.security.oauth2.server.authorization.OAuth2Authorization
     
    org.springframework.security.oauth2.server.authorization.OAuth2Authorization
    findByToken(String token, org.springframework.security.oauth2.server.authorization.OAuth2TokenType tokenType)
     
     
    void
    remove(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
     
    void
    save(org.springframework.security.oauth2.server.authorization.OAuth2Authorization authorization)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()
    • getHmacKey

      public String getHmacKey()