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 Details

    • SCRIPT_CACHE_NAME

      public static final String SCRIPT_CACHE_NAME
      See Also:
    • logger

      protected static final org.jboss.logging.Logger logger
  • Constructor Details

    • RemoteCacheProvider

      public RemoteCacheProvider(Config.Scope config, org.infinispan.manager.EmbeddedCacheManager cacheManager)
  • Method Details

    • 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)