Package org.keycloak.storage
Class ClientStorageManager
java.lang.Object
org.keycloak.storage.ClientStorageManager
- All Implemented Interfaces:
ClientProvider,Provider,ClientLookupProvider
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientStorageManager(KeycloakSession session, long clientStorageProviderTimeout) -
Method Summary
Modifier and TypeMethodDescriptionaddClient(RealmModel realm, String clientId) addClient(RealmModel realm, String id, String clientId) voidaddClientScopes(RealmModel realm, ClientModel client, Set<ClientScopeModel> clientScopes, boolean defaultScope) voidaddClientScopeToAllClients(RealmModel realm, ClientScopeModel clientScope, boolean defaultClientScope) voidclose()getClientByClientId(RealmModel realm, String clientId) getClientById(RealmModel realm, String id) getClientScopes(RealmModel realm, ClientModel client, boolean defaultScopes) longgetClientsCount(RealmModel realm) getClientsStream(RealmModel realm) getClientsStream(RealmModel realm, Integer firstResult, Integer maxResults) static <T> Stream<T>getEnabledStorageProviders(KeycloakSession session, RealmModel realm, Class<T> type) static ClientStorageProvidergetStorageProvider(KeycloakSession session, RealmModel realm, String componentId) static ClientStorageProvidergetStorageProviderInstance(KeycloakSession session, ClientStorageProviderModel model, ClientStorageProviderFactory factory) static ClientStorageProviderModelgetStorageProviderModel(RealmModel realm, String componentId) static <T> Stream<T>getStorageProviders(KeycloakSession session, RealmModel realm, Class<T> type) static booleanhasEnabledStorageProviders(KeycloakSession session, RealmModel realm, Class<?> type) static booleanisStorageProviderEnabled(RealmModel realm, String providerId) protected Stream<ClientModel>query(org.keycloak.storage.ClientStorageManager.PaginatedQuery paginatedQuery, RealmModel realm, Integer firstResult, Integer maxResults) booleanremoveClient(RealmModel realm, String id) voidremoveClients(RealmModel realm) voidremoveClientScope(RealmModel realm, ClientModel client, ClientScopeModel clientScope) searchClientsByAttributes(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) searchClientsByAuthenticationFlowBindingOverrides(RealmModel realm, Map<String, String> overrides, Integer firstResult, Integer maxResults) searchClientsByClientIdStream(RealmModel realm, String clientId, Integer firstResult, Integer maxResults)
-
Field Details
-
session
-
-
Constructor Details
-
ClientStorageManager
-
-
Method Details
-
isStorageProviderEnabled
-
getStorageProviderModel
public static ClientStorageProviderModel getStorageProviderModel(RealmModel realm, String componentId) -
getStorageProvider
public static ClientStorageProvider getStorageProvider(KeycloakSession session, RealmModel realm, String componentId) -
getStorageProviderInstance
public static ClientStorageProvider getStorageProviderInstance(KeycloakSession session, ClientStorageProviderModel model, ClientStorageProviderFactory factory) -
getStorageProviders
public static <T> Stream<T> getStorageProviders(KeycloakSession session, RealmModel realm, Class<T> type) -
getEnabledStorageProviders
public static <T> Stream<T> getEnabledStorageProviders(KeycloakSession session, RealmModel realm, Class<T> type) -
hasEnabledStorageProviders
public static boolean hasEnabledStorageProviders(KeycloakSession session, RealmModel realm, Class<?> type) -
getClientById
- Specified by:
getClientByIdin interfaceClientLookupProvider
-
getClientByClientId
- Specified by:
getClientByClientIdin interfaceClientLookupProvider
-
searchClientsByClientIdStream
public Stream<ClientModel> searchClientsByClientIdStream(RealmModel realm, String clientId, Integer firstResult, Integer maxResults) - Specified by:
searchClientsByClientIdStreamin interfaceClientLookupProvider
-
searchClientsByAttributes
public Stream<ClientModel> searchClientsByAttributes(RealmModel realm, Map<String, String> attributes, Integer firstResult, Integer maxResults) - Specified by:
searchClientsByAttributesin interfaceClientLookupProvider
-
searchClientsByAuthenticationFlowBindingOverrides
public Stream<ClientModel> searchClientsByAuthenticationFlowBindingOverrides(RealmModel realm, Map<String, String> overrides, Integer firstResult, Integer maxResults) - Specified by:
searchClientsByAuthenticationFlowBindingOverridesin interfaceClientLookupProvider
-
query
protected Stream<ClientModel> query(org.keycloak.storage.ClientStorageManager.PaginatedQuery paginatedQuery, RealmModel realm, Integer firstResult, Integer maxResults) -
getClientScopes
public Map<String,ClientScopeModel> getClientScopes(RealmModel realm, ClientModel client, boolean defaultScopes) - Specified by:
getClientScopesin interfaceClientLookupProvider
-
addClient
- Specified by:
addClientin interfaceClientProvider
-
addClient
- Specified by:
addClientin interfaceClientProvider
-
getClientsStream
public Stream<ClientModel> getClientsStream(RealmModel realm, Integer firstResult, Integer maxResults) - Specified by:
getClientsStreamin interfaceClientProvider
-
getClientsStream
- Specified by:
getClientsStreamin interfaceClientProvider
-
getClientsCount
- Specified by:
getClientsCountin interfaceClientProvider
-
getAlwaysDisplayInConsoleClientsStream
- Specified by:
getAlwaysDisplayInConsoleClientsStreamin interfaceClientProvider
-
removeClients
- Specified by:
removeClientsin interfaceClientProvider
-
addClientScopes
public void addClientScopes(RealmModel realm, ClientModel client, Set<ClientScopeModel> clientScopes, boolean defaultScope) - Specified by:
addClientScopesin interfaceClientProvider
-
removeClientScope
- Specified by:
removeClientScopein interfaceClientProvider
-
addClientScopeToAllClients
public void addClientScopeToAllClients(RealmModel realm, ClientScopeModel clientScope, boolean defaultClientScope) - Specified by:
addClientScopeToAllClientsin interfaceClientProvider
-
getAllRedirectUrisOfEnabledClients
- Specified by:
getAllRedirectUrisOfEnabledClientsin interfaceClientProvider
-
close
public void close() -
removeClient
- Specified by:
removeClientin interfaceClientProvider
-