Package org.keycloak.authorization.store
Interface ResourceServerStore
- 
- All Known Implementing Classes:
- JPAResourceServerStore,- MapResourceServerStore,- StoreFactoryCacheSession.ResourceServerCache
 
 public interface ResourceServerStoreAResourceServerStoreis responsible to manage the persistence ofResourceServerinstances.- Author:
- Pedro Igor
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceServercreate(ClientModel client)Creates aResourceServerinstance backed by this persistent storage implementation.voiddelete(ClientModel client)Removes aResourceServerinstance, with the given client from the persistent storage.ResourceServerfindByClient(ClientModel client)Returns aResourceServerinstance based on a client.ResourceServerfindById(RealmModel realm, String id)Returns aResourceServerinstance based on its identifier.
 
- 
- 
- 
Method Detail- 
createResourceServer create(ClientModel client) Creates a ResourceServerinstance backed by this persistent storage implementation.- Parameters:
- client- the client acting as a resource server. Cannot be- null.
- Returns:
- an instance backed by the underlying storage implementation
 
 - 
deletevoid delete(ClientModel client) Removes aResourceServerinstance, with the given client from the persistent storage.- Parameters:
- client- the client acting as a resource server. Cannot be- null.
 
 - 
findByIdResourceServer findById(RealmModel realm, String id) Returns aResourceServerinstance based on its identifier.- Parameters:
- realm- the realm. Cannot be- null.
- id- the identifier of an existing resource server instance
- Returns:
- the resource server instance with the given identifier or null if no instance was found
 
 - 
findByClientResourceServer findByClient(ClientModel client) Returns aResourceServerinstance based on a client.- Parameters:
- client- the client acting as a resource server. Cannot be- null.
- Returns:
- the resource server instance or null if no instance was found
 
 
- 
 
-