Class OAuthClientStorage

java.lang.Object
io.meeds.oauth2.server.storage.OAuthClientStorage
All Implemented Interfaces:
org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository

@Component public class OAuthClientStorage extends Object implements org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository
  • Field Details

  • Constructor Details

    • OAuthClientStorage

      public OAuthClientStorage()
  • Method Details

    • save

      @CacheEvict(cacheNames="oauth.clients", allEntries=true) public void save(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient)
      Specified by:
      save in interface org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository
    • findById

      @Cacheable("oauth.clients") public org.springframework.security.oauth2.server.authorization.client.RegisteredClient findById(String clientId)
      Specified by:
      findById in interface org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository
    • findByClientId

      @Cacheable("oauth.clients") public org.springframework.security.oauth2.server.authorization.client.RegisteredClient findByClientId(String clientId)
      Specified by:
      findByClientId in interface org.springframework.security.oauth2.server.authorization.client.RegisteredClientRepository
    • getClient

      @Cacheable(cacheNames="oauth.clients", key="{#p0, #p1}") public org.springframework.security.oauth2.server.authorization.client.RegisteredClient getClient(String clientId, boolean includeDisabled)
    • delete

      @CacheEvict(cacheNames="oauth.clients", allEntries=true) public void delete(String clientId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • findAll

      public List<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> findAll()
    • enable

      @CacheEvict(cacheNames="oauth.clients", allEntries=true) public boolean enable(String clientId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • disable

      @CacheEvict(cacheNames="oauth.clients", allEntries=true) public boolean disable(String clientId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • display

      @CacheEvict(cacheNames="oauth.clients", allEntries=true) public boolean display(String clientId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • hide

      @CacheEvict(cacheNames="oauth.clients", allEntries=true) public boolean hide(String clientId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException