Class RemoteCacheProvider
- java.lang.Object
-
- org.keycloak.connections.infinispan.RemoteCacheProvider
-
public class RemoteCacheProvider extends Object
Get either just remoteCache associated with remoteStore associated with infinispan cache of given name. If security is enabled, then return secured remoteCache based on the template provided by remoteStore configuration but with added "authentication" configuration of secured hotrod endpoint (RemoteStore doesn't yet allow to configure "security" of hotrod endpoints) TODO: Remove this class once we upgrade to infinispan version, which allows to configure security for remoteStore itself- Author:
- Marek Posolda
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.jboss.logging.Logger
logger
static String
SCRIPT_CACHE_NAME
-
Constructor Summary
Constructors Constructor Description RemoteCacheProvider(Config.Scope config, org.infinispan.manager.EmbeddedCacheManager cacheManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.infinispan.client.hotrod.RemoteCacheManager
getOrCreateSecuredRemoteCacheManager(Config.Scope config, String cacheName, org.infinispan.client.hotrod.RemoteCacheManager origManager)
org.infinispan.client.hotrod.RemoteCache
getRemoteCache(String cacheName)
protected org.infinispan.client.hotrod.RemoteCache
loadRemoteCache(String cacheName)
void
stop()
-
-
-
Field Detail
-
SCRIPT_CACHE_NAME
public static final String SCRIPT_CACHE_NAME
- See Also:
- Constant Field Values
-
logger
protected static final org.jboss.logging.Logger logger
-
-
Constructor Detail
-
RemoteCacheProvider
public RemoteCacheProvider(Config.Scope config, org.infinispan.manager.EmbeddedCacheManager cacheManager)
-
-
Method Detail
-
getRemoteCache
public org.infinispan.client.hotrod.RemoteCache getRemoteCache(String cacheName)
-
stop
public void stop()
-
loadRemoteCache
protected org.infinispan.client.hotrod.RemoteCache loadRemoteCache(String cacheName)
-
getOrCreateSecuredRemoteCacheManager
protected org.infinispan.client.hotrod.RemoteCacheManager getOrCreateSecuredRemoteCacheManager(Config.Scope config, String cacheName, org.infinispan.client.hotrod.RemoteCacheManager origManager)
-
-