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
Fields Modifier and Type Field Description static StringAUTHORIZATION_CLEAR_CACHE_EVENTSstatic StringAUTHORIZATION_INVALIDATION_EVENTSstatic RealmModelNULL_REALMLegacy store doesn't store realm id for any entity and no method there is using new introduced RealmModel parameter.protected StoreFactoryCacheManagerstoreCache
-
Constructor Summary
Constructors Constructor Description InfinispanCacheStoreFactoryProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()CachedStoreFactoryProvidercreate(KeycloakSession session)StringgetId()voidinit(Config.Scope config)voidpostInit(KeycloakSessionFactory factory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
-
-
-
Field Detail
-
AUTHORIZATION_CLEAR_CACHE_EVENTS
public static final String AUTHORIZATION_CLEAR_CACHE_EVENTS
- See Also:
- Constant Field Values
-
AUTHORIZATION_INVALIDATION_EVENTS
public static final String AUTHORIZATION_INVALIDATION_EVENTS
- See Also:
- Constant Field Values
-
storeCache
protected volatile StoreFactoryCacheManager storeCache
-
NULL_REALM
public static final RealmModel 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.
-
-
Method Detail
-
create
public CachedStoreFactoryProvider create(KeycloakSession session)
- Specified by:
createin interfaceProviderFactory<CachedStoreFactoryProvider>
-
init
public void init(Config.Scope config)
- Specified by:
initin interfaceProviderFactory<CachedStoreFactoryProvider>
-
postInit
public void postInit(KeycloakSessionFactory factory)
- Specified by:
postInitin interfaceProviderFactory<CachedStoreFactoryProvider>
-
close
public void close()
- Specified by:
closein interfaceProviderFactory<CachedStoreFactoryProvider>
-
getId
public String getId()
- Specified by:
getIdin interfaceProviderFactory<CachedStoreFactoryProvider>
-
-