public void clearCacheEntry(CacheKey key) { String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId(); super.clearCacheEntry(keyValue); SessionDataStore.getInstance().clearSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME); if (enableRequestScopeCache) { SessionDataStore.getInstance().clearSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME); } }
public void addToCache(CacheKey key, CacheEntry entry) { String keyValue = ((AuthorizationGrantCacheKey) key).getUserAttributesId(); super.addToCache(keyValue, entry); SessionDataStore.getInstance() .storeSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME, entry); if (enableRequestScopeCache) { SessionDataStore.getInstance() .storeSessionData(keyValue, AUTHORIZATION_GRANT_CACHE_NAME, entry); } }
public void addToCacheByToken( AuthorizationGrantCacheKey key, AuthorizationGrantCacheEntry entry) { super.addToCache(key, entry); String tokenId = entry.getTokenId(); if (tokenId != null) { storeToSessionStore(tokenId, entry); } else { storeToSessionStore(replaceFromTokenId(key.getUserAttributesId()), entry); } }
public void clearCacheEntryByCode(AuthorizationGrantCacheKey key) { super.clearCacheEntry(key); clearFromSessionStore(replaceFromCodeId(key.getUserAttributesId())); }
public void addToCacheByCode(AuthorizationGrantCacheKey key, AuthorizationGrantCacheEntry entry) { super.addToCache(key, entry); storeToSessionStore(entry.getCodeId(), entry); }