public class InfinispanTokenRevocationStoreProvider extends Object implements TokenRevocationStoreProvider
Modifier and Type | Field and Description |
---|---|
static org.jboss.logging.Logger |
logger |
Constructor and Description |
---|
InfinispanTokenRevocationStoreProvider(KeycloakSession session,
Supplier<org.infinispan.commons.api.BasicCache<String,ActionTokenValueEntity>> tokenCache) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isRevoked(String tokenId) |
void |
putRevokedToken(String tokenId,
long lifespanSeconds)
Mark given token as revoked.
|
public InfinispanTokenRevocationStoreProvider(KeycloakSession session, Supplier<org.infinispan.commons.api.BasicCache<String,ActionTokenValueEntity>> tokenCache)
public void putRevokedToken(String tokenId, long lifespanSeconds)
TokenRevocationStoreProvider
TokenRevocationStoreProvider.isRevoked(java.lang.String)
method will return false. In reality, the token will usually still be invalid due the "expiration" claim on it, however
that is out of scope of this provider.putRevokedToken
in interface TokenRevocationStoreProvider
public boolean isRevoked(String tokenId)
isRevoked
in interface TokenRevocationStoreProvider
Copyright © 2021 JBoss by Red Hat. All rights reserved.