Package org.keycloak.models.session
Interface RevokedTokenPersisterProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
JpaRevokedTokensPersisterProvider
Use this to revoke a token, so they will be available even after the restart of Keycloak.
The store can be optimized in a way that entries are only added and are only removed by expiry.
The first Keycloak instance starting up will re-load all expired tokens from it.
- Author:
- Alexander Schwartz
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
revokeToken
(String tokenId, long lifetime) Revoke a token with a given ID
-
Method Details
-
revokeToken
Revoke a token with a given ID -
getAllRevokedTokens
Stream<RevokedToken> getAllRevokedTokens() -
expireTokens
void expireTokens()
-