Class InfinispanCacheStoreFactoryProviderFactory
java.lang.Object
org.keycloak.models.cache.infinispan.authorization.InfinispanCacheStoreFactoryProviderFactory
- All Implemented Interfaces:
CachedStoreProviderFactory,ProviderFactory<CachedStoreFactoryProvider>
public class InfinispanCacheStoreFactoryProviderFactory
extends Object
implements CachedStoreProviderFactory
- Author:
- Bill Burke, Stian Thorgersen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final RealmModelLegacy store doesn't store realm id for any entity and no method there is using new introduced RealmModel parameter.protected StoreFactoryCacheManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This is called when the server shuts down.create(KeycloakSession session) getId()voidinit(Config.Scope config) Only called once when the factory is first created.voidpostInit(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
AUTHORIZATION_CLEAR_CACHE_EVENTS
- See Also:
-
AUTHORIZATION_INVALIDATION_EVENTS
- See Also:
-
storeCache
-
NULL_REALM
Legacy store doesn't store realm id for any entity and no method there is using new introduced RealmModel parameter. The parameter was introduced for usage only in the new storage. Therefore, in some cases we may break our rule specified in JavaDoc and usenullvalue as parameter that otherwise cannot benull. We need to be careful and place such value only to a method call that cannot end up in the new store because it would end withNullPointerException. To mark all places where we do this, we use this variable so it is easily searchable.
-
-
Constructor Details
-
InfinispanCacheStoreFactoryProviderFactory
public InfinispanCacheStoreFactoryProviderFactory()
-
-
Method Details
-
create
- Specified by:
createin interfaceProviderFactory<CachedStoreFactoryProvider>
-
init
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
initin interfaceProviderFactory<CachedStoreFactoryProvider>
-
postInit
Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
postInitin interfaceProviderFactory<CachedStoreFactoryProvider>
-
close
public void close()Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
closein interfaceProviderFactory<CachedStoreFactoryProvider>
-
getId
- Specified by:
getIdin interfaceProviderFactory<CachedStoreFactoryProvider>
-