public AuthorizationGrantCacheEntry getValueFromCacheByCode(AuthorizationGrantCacheKey key) { AuthorizationGrantCacheEntry cacheEntry = super.getValueFromCache(key); if (cacheEntry == null) { getFromSessionStore(replaceFromCodeId(key.getUserAttributesId())); } return cacheEntry; }
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())); }