Class OAuthConsentCachedStorage

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

@Component public class OAuthConsentCachedStorage 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.OAuth2AuthorizationConsent
    findById(String clientId, String username)
     
    void
    remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
     
    void
    save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • OAuthConsentCachedStorage

      public OAuthConsentCachedStorage()
  • Method Details

    • findById

      @Cacheable(cacheNames="oauth.consents", key="{#root.args[0], #root.args[1]}") public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent findById(String clientId, String username)
    • save

      @CacheEvict(cacheNames="oauth.consents", allEntries=true) public void save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
    • remove

      @CacheEvict(cacheNames="oauth.consents", allEntries=true) public void remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
    • evictCache

      @CacheEvict(cacheNames="oauth.consents", allEntries=true) public void evictCache()