/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/extensions/ |
H A D | ExtensionFilterManager.java | 41 private final Map<Class<?>, Collection<?>> cache = new HashMap<>(); field in class:ExtensionFilterManager 52 if (!cache.containsKey(clazz)) { 58 cache.put(clazz, filters); 61 return (Collection) cache.get(clazz);
|
/forgerock/openam-v13/openam-slf4j/src/main/java/org/forgerock/openam/slf4j/ |
H A D | AMLoggerFactory.java | 21 import org.forgerock.guava.common.cache.CacheBuilder; 22 import org.forgerock.guava.common.cache.CacheLoader; 23 import org.forgerock.guava.common.cache.LoadingCache; 29 private static final LoadingCache<String, Debug> cache = CacheBuilder.newBuilder() field in class:AMLoggerFactory 38 return new AMDebugLogger(cache.getUnchecked(s));
|
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/extensions/ |
H A D | ExtensionFilterManager.java | 41 private final Map<Class<?>, Collection<?>> cache = new HashMap<>(); field in class:ExtensionFilterManager 52 if (!cache.containsKey(clazz)) { 58 cache.put(clazz, filters); 61 return (Collection) cache.get(clazz);
|
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCache.java | 16 package org.forgerock.openam.session.stateless.cache; 36 * This cache acts as a performance enhancement which will reduce the number of times JWT 39 * This cache is intentionally unable to perform the reverse lookup of SessionInfo to 55 // Responds to configuration changes, preventing possibly invalid keys from remaining in the cache 71 public void cache(SessionInfo info, String jwtToken) { method in class:StatelessJWTCache 94 * @return True if this JWT has been stored in the cache previously. 101 * Clearing the cache will remove all cached mappings between JWT and SessionID.
|
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCacheTest.java | 16 package org.forgerock.openam.session.stateless.cache; 40 private StatelessJWTCache cache; field in class:StatelessJWTCacheTest 73 cache = new StatelessJWTCache(mockConfig, mockListeners); 74 assertThat(cache.contains((String)null)).isFalse(); 79 cache = new StatelessJWTCache(mockConfig, mockListeners); 80 assertThat(cache.contains((SessionInfo)null)).isFalse(); 87 cache = new StatelessJWTCache(mockConfig, mockListeners); 91 cache.cache(mockInfo, jwt); 93 assertThat(cache [all...] |
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCache.java | 16 package org.forgerock.openam.session.stateless.cache; 36 * This cache acts as a performance enhancement which will reduce the number of times JWT 39 * This cache is intentionally unable to perform the reverse lookup of SessionInfo to 55 // Responds to configuration changes, preventing possibly invalid keys from remaining in the cache 71 public void cache(SessionInfo info, String jwtToken) { method in class:StatelessJWTCache 94 * @return True if this JWT has been stored in the cache previously. 101 * Removes the given JWT from the cache. 103 * @param jwt the JWT to remove from the cache. 110 * Clearing the cache will remove all cached mappings between JWT and SessionID.
|
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/session/stateless/cache/ |
H A D | StatelessJWTCacheTest.java | 16 package org.forgerock.openam.session.stateless.cache; 40 private StatelessJWTCache cache; field in class:StatelessJWTCacheTest 73 cache = new StatelessJWTCache(mockConfig, mockListeners); 74 assertThat(cache.contains((String)null)).isFalse(); 79 cache = new StatelessJWTCache(mockConfig, mockListeners); 80 assertThat(cache.contains((SessionInfo)null)).isFalse(); 87 cache = new StatelessJWTCache(mockConfig, mockListeners); 91 cache.cache(mockInfo, jwt); 93 assertThat(cache [all...] |
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/entitlement/opensso/ |
H A D | CacheTaboo.java | 60 public static boolean isTaboo(String cache, String key) { argument 64 Set<String> set = tabooed.get(cache); 74 public static void taboo(String cache, String key) { argument 78 Set<String> set = tabooed.get(cache); 81 tabooed.put(cache, set);
|
H A D | PolicyCache.java | 43 private Cache cache; field in class:PolicyCache 49 cache = new Cache(name, initCapacity, size); 59 public void cache(String dn, Privilege p, String realm) { method in class:PolicyCache 62 Object e = cache.put(dn, p); 80 public void cache(String dn, ReferralPrivilege p, String realm) { method in class:PolicyCache 83 cache.put(dn, p); 89 public void cache(Map<String, Privilege> privileges, boolean force) { method in class:PolicyCache 94 cache.put(dn, privileges.get(dn)); 98 cache.put(dn, privileges.get(dn)); 110 Object p = cache [all...] |
/forgerock/openam-v13/openam-core/src/main/java/com/sun/identity/idsvcs/ |
H A D | IdentityServicesFactory.java | 50 private static Map cache = new HashMap(); field in class:IdentityServicesFactory 75 cache.get(provider); 94 cache.put(provider, ret);
|
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/session/blacklist/ |
H A D | CachingSessionBlacklist.java | 35 private final Map<String, Long> cache; field in class:CachingSessionBlacklist 45 this.cache = Collections.synchronizedMap(new LeastRecentlyUsed<String, Long>(maxSize) { 54 * Constructs the caching session blacklist with the given delegate blacklist and maximum cache size. 56 * @param delegate the delegate to defer cache misses to. 57 * @param maxSize the maximum size of the LRU cache to maintain. 58 * @param purgeDelayMs the additional delay before purging elements from the cache. 66 if (cache.put(session.getStableStorageID(), session.getBlacklistExpiryTime(purgeDelayMs)) == null) { 67 // Only blacklist sessions that are not already in the cache. 76 if (cache.containsKey(key)) { 84 // Only cache entrie [all...] |
/forgerock/openam-v13/openam-shared/src/main/java/org/forgerock/openam/utils/ |
H A D | PerThreadCache.java | 25 * Provides caching of some expensive objects in a per-thread LRU cache for performance. Note: this cache does not use 28 * The map also acts as a LRU cache, ensuring a maximum size limit is obeyed by evicting the least recently used (LRU) 31 * @param <T> The cache entry type. 44 * Configure a {@link LinkedHashMap} as a simple LRU cache, indexed by thread id. 48 private final Map<Long, T> cache = new LinkedHashMap<Long, T>(INITIAL_CACHE_SIZE, CACHE_LOAD_FACTOR, true) { field in class:PerThreadCache 62 * Initialises the thread-local cache with the given maximum size (i.e., number of threads). 64 * @param maxSize the maximum number of instances to cache. 71 * Fetches an instance of the resource from the cache for the current thread. If no instance has been cached for 72 * this thread, then calls {@link #initialValue()} to create one and then adds it to the cache [all...] |
/forgerock/openam/openam-push-notification/src/main/java/org/forgerock/openam/services/push/dispatch/ |
H A D | MessageDispatcher.java | 22 import org.forgerock.guava.common.cache.Cache; 33 * may or may not later be updated by this dispatcher; and store it in a cache this promise under a key of 41 * - If it does not, the promise will complete, and be removed from the cache. 48 private final Cache<String, MessagePromise> cache; field in class:MessageDispatcher 55 * @param dispatch A cache to store messages which will shortly be dispatched. 60 this.cache = dispatch; 75 MessagePromise messagePromise = cache.getIfPresent(messageId); 84 cache.invalidate(messageId); 87 throw new NotFoundException("This cache was not primed for this messageId."); 95 * @param messageId The messageId to inform this cache t [all...] |
/forgerock/openam/openam-shared/src/main/java/org/forgerock/openam/utils/ |
H A D | PerThreadCache.java | 25 * Provides caching of some expensive objects in a per-thread LRU cache for performance. Note: this cache does not use 28 * The map also acts as a LRU cache, ensuring a maximum size limit is obeyed by evicting the least recently used (LRU) 31 * @param <T> The cache entry type. 44 * Configure a {@link LinkedHashMap} as a simple LRU cache, indexed by thread id. 48 private final Map<Long, T> cache = new LinkedHashMap<Long, T>(INITIAL_CACHE_SIZE, CACHE_LOAD_FACTOR, true) { field in class:PerThreadCache 62 * Initialises the thread-local cache with the given maximum size (i.e., number of threads). 64 * @param maxSize the maximum number of instances to cache. 71 * Fetches an instance of the resource from the cache for the current thread. If no instance has been cached for 72 * this thread, then calls {@link #initialValue()} to create one and then adds it to the cache [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/entitlement/opensso/ |
H A D | CacheTaboo.java | 60 public static boolean isTaboo(String cache, String key) { argument 64 Set<String> set = tabooed.get(cache); 74 public static void taboo(String cache, String key) { argument 78 Set<String> set = tabooed.get(cache); 81 tabooed.put(cache, set);
|
H A D | PolicyCache.java | 43 private Cache cache; field in class:PolicyCache 49 cache = new Cache(name, initCapacity, size); 59 public void cache(String dn, Privilege p, String realm) { method in class:PolicyCache 62 Object e = cache.put(dn, p); 80 public void cache(String dn, ReferralPrivilege p, String realm) { method in class:PolicyCache 83 cache.put(dn, p); 89 public void cache(Map<String, Privilege> privileges, boolean force) { method in class:PolicyCache 94 cache.put(dn, privileges.get(dn)); 98 cache.put(dn, privileges.get(dn)); 110 Object p = cache [all...] |
/forgerock/openam/openam-core/src/main/java/com/sun/identity/idsvcs/ |
H A D | IdentityServicesFactory.java | 50 private static Map cache = new HashMap(); field in class:IdentityServicesFactory 75 cache.get(provider); 94 cache.put(provider, ret);
|
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/blacklist/ |
H A D | CachingBlacklist.java | 35 private final Map<String, Long> cache; field in class:CachingBlacklist 44 this.cache = Collections.synchronizedMap(new LeastRecentlyUsed<String, Long>(maxSize) { 53 * Constructs the caching entry blacklist with the given delegate blacklist and maximum cache size. 55 * @param delegate the delegate to defer cache misses to. 56 * @param maxSize the maximum size of the LRU cache to maintain. 57 * @param purgeDelayMs the additional delay before purging elements from the cache. 65 if (cache.put(entry.getStableStorageID(), entry.getBlacklistExpiryTime() + purgeDelayMs) == null) { 66 // Only blacklist entries that are not already in the cache. 75 if (cache.containsKey(key)) { 83 // Only cache entrie [all...] |
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/session/ |
H A D | SessionCacheTest.java | 38 private SessionCache cache = SessionCache.getInstance(); field in class:SessionCacheTest 63 cache.writeSession(session); 74 session = cache.getSession(sessionID, false, true); 89 session = cache.getSession(sessionID, false, false); 104 session = cache.getSession(sessionID, true, true);
|
/forgerock/openam-v13/openam-console/src/main/java/com/sun/identity/console/session/model/ |
H A D | SMProfileModel.java | 71 * Returns session cache. 74 * @return session cache. 75 * @throws AMConsoleException if unable to get the session cache. 81 * Sets session cache. 83 * @param cache Session cache. 85 public void setSmSessionCache(SMSessionCache cache); argument
|
/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/service/ |
H A D | InternalSessionCacheTest.java | 32 private InternalSessionCache cache; field in class:InternalSessionCacheTest 42 cache = new InternalSessionCache(mockConfig); 47 cache.put(session); 48 assertThat(cache.getBySessionID(sessionId)).isEqualTo(session); 55 cache.put(session); 56 assertThat(cache.getByRestrictedID(restrictedID)).isEqualTo(session); 63 cache.put(session); 64 assertThat(cache.getByHandle(handle)).isEqualTo(session); 69 cache.put(session); 70 cache [all...] |
/forgerock/openam/openam-push-notification/src/test/java/org/forgerock/openam/services/push/dispatch/ |
H A D | MessageDispatcherTest.java | 24 import org.forgerock.guava.common.cache.Cache; 25 import org.forgerock.guava.common.cache.CacheBuilder; 33 Cache cache = CacheBuilder.newBuilder().build(); field in class:MessageDispatcherTest 40 messageDispatcher = new MessageDispatcher(cache, mockDebug); 106 assertThat(cache.getIfPresent("toForget")).isNull();
|
/forgerock/openam/openam-console/src/main/java/com/sun/identity/console/session/model/ |
H A D | SMProfileModel.java | 71 * Returns session cache. 74 * @return session cache. 75 * @throws AMConsoleException if unable to get the session cache. 81 * Sets session cache. 83 * @param cache Session cache. 85 public void setSmSessionCache(SMSessionCache cache); argument
|
/forgerock/opendj-b2.6/tests/unit-tests-testng/src/server/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 48 * A common set of test cases for all entry cache implementations. 49 * @param <C> The type of entry cache configuration. 63 * Maximum number of entries the cache can hold. 89 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 94 * Entry cache configuration instance. 108 assertNull(cache.toVerboseString(), 109 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 110 cache.toVerboseString()); 115 assertFalse(cache.containsEntry(testEntriesList.get(0).getDN()), 117 " in the cache [all...] |
/forgerock/opendj2/tests/unit-tests-testng/src/server/org/opends/server/extensions/ |
H A D | CommonEntryCacheTestCase.java | 47 * A common set of test cases for all entry cache implementations. 48 * @param <C> The type of entry cache configuration. 62 * Maximum number of entries the cache can hold. 88 protected EntryCache<C> cache; field in class:CommonEntryCacheTestCase 93 * Entry cache configuration instance. 107 assertNull(cache.toVerboseString(), 108 "Expected empty cache. " + "Cache contents:" + ServerConstants.EOL + 109 cache.toVerboseString()); 114 assertFalse(cache.containsEntry(testEntriesList.get(0).getDN()), 116 " in the cache [all...] |