public interface SingleUseTokenStoreProvider extends Provider
CodeToTokenStoreProvider
, however will be good to merge those 2 providers to "SingleUseCacheProvider"
in the future as they provide very similar thingModifier and Type | Method and Description |
---|---|
boolean |
putIfAbsent(String tokenId,
int lifespanInSeconds)
Will try to put the token into the cache.
|
boolean putIfAbsent(String tokenId, int lifespanInSeconds)
tokenId
- lifespanInSeconds
- Minimum lifespan for which successfully added token will be kept in the cache.Copyright © 2020 JBoss by Red Hat. All rights reserved.