public class InfinispanActionTokenStoreProvider extends Object implements ActionTokenStoreProvider
Constructor and Description |
---|
InfinispanActionTokenStoreProvider(KeycloakSession session,
org.infinispan.Cache<ActionTokenReducedKey,ActionTokenValueEntity> actionKeyCache) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ActionTokenValueModel |
get(ActionTokenKeyModel actionTokenKey)
Returns token corresponding to the given key from the internal action token store
|
void |
put(ActionTokenKeyModel key,
Map<String,String> notes)
Adds a given token to token store.
|
ActionTokenValueModel |
remove(ActionTokenKeyModel actionTokenKey)
Removes token corresponding to the given key from the internal action token store, and returns the stored value
|
public InfinispanActionTokenStoreProvider(KeycloakSession session, org.infinispan.Cache<ActionTokenReducedKey,ActionTokenValueEntity> actionKeyCache)
public void put(ActionTokenKeyModel key, Map<String,String> notes)
ActionTokenStoreProvider
put
in interface ActionTokenStoreProvider
key
- keynotes
- Optional notes to be stored with the token. Can be null
in which case it is treated as an empty map.public ActionTokenValueModel get(ActionTokenKeyModel actionTokenKey)
ActionTokenStoreProvider
get
in interface ActionTokenStoreProvider
actionTokenKey
- keynull
if no token is found for given key and nonce, value otherwisepublic ActionTokenValueModel remove(ActionTokenKeyModel actionTokenKey)
ActionTokenStoreProvider
remove
in interface ActionTokenStoreProvider
actionTokenKey
- keynull
if no token is found for given key and nonce, value otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.