Class OAuthConsentStorage

java.lang.Object
io.meeds.oauth2.server.storage.OAuthConsentStorage
All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService

@Component public class OAuthConsentStorage extends Object implements org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
  • Constructor Details

    • OAuthConsentStorage

      public OAuthConsentStorage()
  • Method Details

    • findById

      public org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent findById(String clientId, String username)
      Specified by:
      findById in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
    • save

      public void save(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
      Specified by:
      save in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
    • remove

      public void remove(org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsent authorizationConsent)
      Specified by:
      remove in interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationConsentService
    • findByUserAndClientId

      public OAuthConsent findByUserAndClientId(String username, String clientId)
    • findByUser

      public List<OAuthConsent> findByUser(String username)
    • findByClientId

      public List<OAuthConsent> findByClientId(String clientId)
    • deleteByUserAndClientId

      public void deleteByUserAndClientId(String username, String clientId)
    • deleteByClientId

      public void deleteByClientId(String clientId)
    • deleteByUser

      public void deleteByUser(String username)