Interface RevokedTokenPersisterProvider

All Superinterfaces:
Provider
All Known Implementing Classes:
JpaRevokedTokensPersisterProvider

public interface RevokedTokenPersisterProvider extends Provider
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 Details

    • revokeToken

      void revokeToken(String tokenId, long lifetime)
      Revoke a token with a given ID
    • getAllRevokedTokens

      Stream<RevokedToken> getAllRevokedTokens()
    • expireTokens

      void expireTokens()