Class MapResourceServerStore
java.lang.Object
org.keycloak.models.map.authorization.MapResourceServerStore
- All Implemented Interfaces:
ResourceServerStore
-
Constructor Summary
ConstructorsConstructorDescriptionMapResourceServerStore(MapStorage<MapResourceServerEntity, ResourceServer> resourceServerStore, AuthorizationProvider provider) -
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.findById(RealmModel realm, String id) Returns aResourceServerinstance based on its identifier.voidpreRemove(RealmModel realm)
-
Constructor Details
-
MapResourceServerStore
public MapResourceServerStore(MapStorage<MapResourceServerEntity, ResourceServer> resourceServerStore, AuthorizationProvider provider)
-
-
Method Details
-
create
Description copied from interface:ResourceServerStoreCreates a
ResourceServerinstance backed by this persistent storage implementation.- Specified by:
createin interfaceResourceServerStore- Parameters:
client- the client acting as a resource server. Cannot benull.- Returns:
- an instance backed by the underlying storage implementation
-
delete
Description copied from interface:ResourceServerStoreRemoves aResourceServerinstance, with the given client from the persistent storage.- Specified by:
deletein interfaceResourceServerStore- Parameters:
client- the client acting as a resource server. Cannot benull.
-
findById
Description copied from interface:ResourceServerStoreReturns aResourceServerinstance based on its identifier.- Specified by:
findByIdin interfaceResourceServerStore- 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
Description copied from interface:ResourceServerStoreReturns aResourceServerinstance based on a client.- Specified by:
findByClientin interfaceResourceServerStore- Parameters:
client- the client acting as a resource server. Cannot benull.- Returns:
- the resource server instance or null if no instance was found
-
preRemove
-