Package org.keycloak.models
Interface KeycloakSessionFactory
-
- All Superinterfaces:
InvalidationHandler
,ProviderEventManager
- All Known Implementing Classes:
DefaultKeycloakSessionFactory
,ImportSessionFactoryWrapper
public interface KeycloakSessionFactory extends ProviderEventManager, InvalidationHandler
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.keycloak.provider.InvalidationHandler
InvalidationHandler.InvalidableObjectType, InvalidationHandler.ObjectType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
KeycloakSession
create()
Stream<ProviderFactory>
getProviderFactoriesStream(Class<? extends Provider> clazz)
Returns stream of provider factories for the given provider.<T extends Provider>
ProviderFactory<T>getProviderFactory(Class<T> clazz)
<T extends Provider>
ProviderFactory<T>getProviderFactory(Class<T> clazz, String id)
<T extends Provider>
ProviderFactory<T>getProviderFactory(Class<T> clazz, String realmId, String componentId, Function<KeycloakSessionFactory,ComponentModel> modelGetter)
long
getServerStartupTimestamp()
Spi
getSpi(Class<? extends Provider> providerClass)
Set<Spi>
getSpis()
-
Methods inherited from interface org.keycloak.provider.InvalidationHandler
invalidate
-
Methods inherited from interface org.keycloak.provider.ProviderEventManager
publish, register, unregister
-
-
-
-
Method Detail
-
create
KeycloakSession create()
-
getProviderFactory
<T extends Provider> ProviderFactory<T> getProviderFactory(Class<T> clazz)
-
getProviderFactory
<T extends Provider> ProviderFactory<T> getProviderFactory(Class<T> clazz, String id)
-
getProviderFactory
<T extends Provider> ProviderFactory<T> getProviderFactory(Class<T> clazz, String realmId, String componentId, Function<KeycloakSessionFactory,ComponentModel> modelGetter)
-
getProviderFactoriesStream
Stream<ProviderFactory> getProviderFactoriesStream(Class<? extends Provider> clazz)
Returns stream of provider factories for the given provider.- Parameters:
clazz
-Class<? extends Provider>
- Returns:
Stream<ProviderFactory>
Stream of provider factories. Never returnsnull
.
-
getServerStartupTimestamp
long getServerStartupTimestamp()
-
close
void close()
-
-