49 ActionTokenValueEntity tokenValue =
new ActionTokenValueEntity(null);
54 BasicCache<UUID, ActionTokenValueEntity> cache =
codeCache.get();
55 ActionTokenValueEntity existing = cache.putIfAbsent(codeId, tokenValue, lifespanInSeconds, TimeUnit.SECONDS);
56 return existing == null;
57 }
catch (HotRodClientException re) {
60 if (
logger.isDebugEnabled()) {
61 logger.debugf(re,
"Failed when adding code %s", codeId);
KeycloakContext getContext()
final KeycloakSession session
Definition: InfinispanCodeToTokenStoreProvider.java:40
static final Logger logger
Definition: InfinispanCodeToTokenStoreProvider.java:37
int getAccessCodeLifespan()
final Supplier< BasicCache< UUID, ActionTokenValueEntity > > codeCache
Definition: InfinispanCodeToTokenStoreProvider.java:39