Package org.keycloak.authorization.store
Interface ResourceServerStore
-
- All Known Implementing Classes:
JPAResourceServerStore
,MapResourceServerStore
,StoreFactoryCacheSession.ResourceServerCache
public interface ResourceServerStore
AResourceServerStore
is responsible to manage the persistence ofResourceServer
instances.- Author:
- Pedro Igor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceServer
create(ClientModel client)
Creates aResourceServer
instance backed by this persistent storage implementation.void
delete(ClientModel client)
Removes aResourceServer
instance, with the given client from the persistent storage.ResourceServer
findByClient(ClientModel client)
Returns aResourceServer
instance based on a client.ResourceServer
findById(RealmModel realm, String id)
Returns aResourceServer
instance based on its identifier.
-
-
-
Method Detail
-
create
ResourceServer create(ClientModel client)
Creates a
ResourceServer
instance 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
void delete(ClientModel client)
Removes aResourceServer
instance, with the given client from the persistent storage.- Parameters:
client
- the client acting as a resource server. Cannot benull
.
-
findById
ResourceServer findById(RealmModel realm, String id)
Returns aResourceServer
instance based on its identifier.- Parameters:
realm
- the realm. Cannot benull
.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
ResourceServer findByClient(ClientModel client)
Returns aResourceServer
instance 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
-
-