public class CachedResourceServerStore extends Object implements ResourceServerStore
| Constructor and Description |
|---|
CachedResourceServerStore(KeycloakSession session,
org.keycloak.models.authorization.infinispan.InfinispanStoreFactoryProvider.CacheTransaction transaction) |
| Modifier and Type | Method and Description |
|---|---|
ResourceServer |
create(String clientId)
Creates a
ResourceServer instance backed by this persistent storage implementation. |
void |
delete(String id)
Removes a
ResourceServer instance, with the given id from the persistent storage. |
ResourceServer |
findByClient(String id)
Returns a
ResourceServer instance based on the identifier of a client application. |
ResourceServer |
findById(String id)
Returns a
ResourceServer instance based on its identifier. |
public CachedResourceServerStore(KeycloakSession session, org.keycloak.models.authorization.infinispan.InfinispanStoreFactoryProvider.CacheTransaction transaction)
public ResourceServer create(String clientId)
ResourceServerStoreCreates a ResourceServer instance backed by this persistent storage implementation.
create in interface ResourceServerStoreclientId - the client id acting as a resource serverpublic void delete(String id)
ResourceServerStoreResourceServer instance, with the given id from the persistent storage.delete in interface ResourceServerStoreid - the identifier of an existing resource server instancepublic ResourceServer findById(String id)
ResourceServerStoreResourceServer instance based on its identifier.findById in interface ResourceServerStoreid - the identifier of an existing resource server instancepublic ResourceServer findByClient(String id)
ResourceServerStoreResourceServer instance based on the identifier of a client application.findByClient in interface ResourceServerStoreid - the identifier of an existing client applicationCopyright © 2016 JBoss by Red Hat. All rights reserved.