/** * Get the Cache Manager for Registry * * @return CacheManager is returned */ private static CacheManager getCacheManager() { return Caching.getCacheManagerFactory().getCacheManager( RegistryConstants.REGISTRY_CACHE_MANAGER); }
private static CacheManager getCacheManager() { return Caching.getCacheManagerFactory().getCacheManager( PolicyManagementConstants.DM_CACHE_MANAGER); }
protected Cache<String, UserIdentityClaimsDO> getCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE_MANAGER); Cache<String, UserIdentityClaimsDO> cache = manager.getCache(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE); return cache; }
protected Cache<String, UserIdentityClaim> getCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE_MANAGER); Cache<String, UserIdentityClaim> cache = manager.getCache(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE); return cache; }
/** * Returns the default "POX_ENABLED" cache */ private Cache<String, String> getPOXCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(POXSecurityHandler.POX_CACHE_MANAGER); Cache<String, String> cache = manager.getCache(POXSecurityHandler.POX_ENABLED); return cache; } }
/** * Returns the default "POX_ENABLED" cache */ private Cache<String, String> getPOXCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(POXSecurityHandler.POX_CACHE_MANAGER); Cache<String, String> cache = manager.getCache(POXSecurityHandler.POX_ENABLED); return cache; } }
/** * Returns the default "POX_ENABLED" cache */ private Cache<String, String> getPOXCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(POXSecurityHandler.POX_CACHE_MANAGER); Cache<String, String> cache = manager.getCache(POXSecurityHandler.POX_ENABLED); return cache; }
/** * Getting existing cache if the cache available, else returns a newly created cache. * This logic handles by javax.cache implementation */ private Cache<K, V> getOpenIDCache() { CacheManager cacheManager = Caching.getCacheManagerFactory().getCacheManager(OPENID_CACHE_MANAGER); return cacheManager.getCache(openidCacheName); }
protected Cache<String, UserIdentityClaim> getCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(InMemoryIdentityDataStore.IDENTITY_GOVERNANCE_DATA_CACHE_MANAGER); Cache<String, UserIdentityClaim> cache = manager.getCache(InMemoryIdentityDataStore.IDENTITY_GOVERNANCE_DATA_CACHE); return cache; }
/** * Getting existing cache if the cache available, else returns a newly created cache. * This logic handles by javax.cache implementation */ private Cache<K, V> getOpenIDCache() { CacheManager cacheManager = Caching.getCacheManagerFactory().getCacheManager(OPENID_CACHE_MANAGER); return cacheManager.getCache(openidCacheName); }
/** * Returns the default "POX_ENABLED" cache */ private Cache<String, String> getPOXCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(POXSecurityHandler.POX_CACHE_MANAGER); Cache<String, String> cache = manager.getCache(POXSecurityHandler.POX_ENABLED); return cache; }
/** * Returns the default "POX_ENABLED" cache */ private Cache<String, String> getPOXCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(POXSecurityHandler.POX_CACHE_MANAGER); Cache<String, String> cache = manager.getCache(POXSecurityHandler.POX_ENABLED); return cache; } }
/** * Get the cache which holds the RandomPasswordContainer cache * * @return Cache object of RandomPasswordContainerCache */ public Cache<String, RandomPasswordContainer> getRandomPasswordContainerCache() { return Caching.getCacheManagerFactory().getCacheManager( UserStoreConfigurationConstant.SECONDARY_STORAGE_CACHE_MANAGER). getCache(UserStoreConfigurationConstant.RANDOM_PASSWORD_CONTAINER_CACHE); }
/** * Getting existing cache if the cache available, else returns a newly created cache. * This logic handles by javax.cache implementation */ public static Cache<String, SerializableToken> getTokenCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(STSMgtConstants.TOKEN_CACHE_MANAGER); return manager.getCache(STSMgtConstants.TOKEN_CACHE_ID); }
/** * Getting existing cache if the cache available, else returns a newly created cache. * This logic handles by javax.cache implementation */ public static Cache<String, SerializableToken> getTokenCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(STSMgtConstants.TOKEN_CACHE_MANAGER); return manager.getCache(STSMgtConstants.TOKEN_CACHE_ID); }
/** * Get the cache which holds the RandomPasswordContainer cache * * @return Cache object of RandomPasswordContainerCache */ public Cache<String, RandomPasswordContainer> getRandomPasswordContainerCache() { return Caching.getCacheManagerFactory().getCacheManager( UserStoreConfigurationConstant.SECONDARY_STORAGE_CACHE_MANAGER). getCache(UserStoreConfigurationConstant.RANDOM_PASSWORD_CONTAINER_CACHE); }
/** * Returns the default "POX_ENABLED" cache */ private Cache<String, String> getPOXCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(POXSecurityHandler.POX_CACHE_MANAGER); Cache<String, String> cache = manager.getCache(POXSecurityHandler.POX_ENABLED); return cache; }
protected Cache<String, UserIdentityClaimsDO> getCache() { CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE_MANAGER); Cache<String, UserIdentityClaimsDO> cache = manager.getCache(InMemoryIdentityDataStore.IDENTITY_LOGIN_DATA_CACHE); return cache; }
/** * Return an instance of a named cache that is common to all tenants. * * @param name the name of the cache. * @return the named cache instance. */ private Cache<IdentityCacheKey, IdentityCacheEntry> getCommonCache() { // TODO Should verify the cache creation done per tenant or as below // We create a single cache for all tenants. It is not a good choice to create per-tenant // caches in this case. We qualify tenants by adding the tenant identifier in the cache key. CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(ProxyConstants.DECISION_CACHE); return manager.getCache(ProxyConstants.DECISION_CACHE); }
/** * Return an instance of a named cache that is common to all tenants. * * @param name the name of the cache. * @return the named cache instance. */ private Cache<IdentityCacheKey, IdentityCacheEntry> getCommonCache() { // TODO Should verify the cache creation done per tenant or as below // We create a single cache for all tenants. It is not a good choice to create per-tenant // caches in this case. We qualify tenants by adding the tenant identifier in the cache key. CacheManager manager = Caching.getCacheManagerFactory().getCacheManager(ProxyConstants.DECISION_CACHE); return manager.getCache(ProxyConstants.DECISION_CACHE); }