public class InfinispanPushedAuthzRequestStoreProvider extends Object implements PushedAuthzRequestStoreProvider
Modifier and Type | Field and Description |
---|---|
static org.jboss.logging.Logger |
logger |
Constructor and Description |
---|
InfinispanPushedAuthzRequestStoreProvider(KeycloakSession session,
Supplier<org.infinispan.commons.api.BasicCache<UUID,ActionTokenValueEntity>> actionKeyCache) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
put(UUID key,
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 key)
This method returns data just if removal was successful.
|
public InfinispanPushedAuthzRequestStoreProvider(KeycloakSession session, Supplier<org.infinispan.commons.api.BasicCache<UUID,ActionTokenValueEntity>> actionKeyCache)
public void put(UUID key, int lifespanSeconds, Map<String,String> codeData)
PushedAuthzRequestStoreProvider
put
in interface PushedAuthzRequestStoreProvider
key
- unique identifierlifespanSeconds
- time to livecodeData
- the data to storepublic Map<String,String> remove(UUID key)
PushedAuthzRequestStoreProvider
remove
in interface PushedAuthzRequestStoreProvider
key
- unique identifierCopyright © 2021 JBoss by Red Hat. All rights reserved.