Package org.keycloak.authorization.store
Interface ResourceServerStore
- All Known Implementing Classes:
JPAResourceServerStore,StoreFactoryCacheSession.ResourceServerCache
public interface ResourceServerStore
A
ResourceServerStore is responsible to manage the persistence of ResourceServer instances.- Author:
- Pedro Igor
-
Method Summary
Modifier and TypeMethodDescriptioncreate(ClientModel client) Creates aResourceServerinstance backed by this persistent storage implementation.voiddelete(ClientModel client) Removes aResourceServerinstance, with the given client from the persistent storage.findByClient(ClientModel client) Returns aResourceServerinstance based on a client.Returns aResourceServerinstance based on its identifier.
-
Method Details
-
create
Creates a
ResourceServerinstance backed by this persistent storage implementation.- Parameters:
client- the client acting as a resource server. Cannot benull.- Returns:
- an instance backed by the underlying storage implementation
-
delete
Removes aResourceServerinstance, with the given client from the persistent storage.- Parameters:
client- the client acting as a resource server. Cannot benull.
-
findById
Returns aResourceServerinstance based on its identifier.- Parameters:
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
-
findByClient
Returns aResourceServerinstance based on a client.- Parameters:
client- the client acting as a resource server. Cannot benull.- Returns:
- the resource server instance or null if no instance was found
-