public class InfinispanCodeToTokenStoreProvider extends Object implements CodeToTokenStoreProvider
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.logging.Logger |
logger |
| Constructor and Description |
|---|
InfinispanCodeToTokenStoreProvider(KeycloakSession session,
Supplier<org.infinispan.commons.api.BasicCache<UUID,ActionTokenValueEntity>> actionKeyCache) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
put(UUID codeId,
int lifespanSeconds,
Map<String,String> codeData)
Stores the given data and guarantees that data should be available in the store for at least the time specified by parameter
|
Map<String,String> |
remove(UUID codeId)
This method returns data just if removal was successful.
|
public InfinispanCodeToTokenStoreProvider(KeycloakSession session, Supplier<org.infinispan.commons.api.BasicCache<UUID,ActionTokenValueEntity>> actionKeyCache)
public void put(UUID codeId, int lifespanSeconds, Map<String,String> codeData)
CodeToTokenStoreProviderput in interface CodeToTokenStoreProviderpublic Map<String,String> remove(UUID codeId)
CodeToTokenStoreProviderremove in interface CodeToTokenStoreProviderCopyright © 2021 JBoss by Red Hat. All rights reserved.