Package io.meeds.oauth2.server.storage
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanbooleanList<org.springframework.security.oauth2.server.authorization.client.RegisteredClient> findAll()org.springframework.security.oauth2.server.authorization.client.RegisteredClientfindByClientId(String clientId) org.springframework.security.oauth2.server.authorization.client.RegisteredClientorg.springframework.security.oauth2.server.authorization.client.RegisteredClientbooleanvoidsave(org.springframework.security.oauth2.server.authorization.client.RegisteredClient registeredClient)
-
Field Details
-
CACHE_NAME
- See Also:
-
-
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:
savein interfaceorg.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:
findByIdin interfaceorg.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:
findByClientIdin interfaceorg.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
-