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)
CodeToTokenStoreProvider
put
in interface CodeToTokenStoreProvider
public Map<String,String> remove(UUID codeId)
CodeToTokenStoreProvider
remove
in interface CodeToTokenStoreProvider
Copyright © 2020 JBoss by Red Hat. All rights reserved.