Class InfinispanRevokedTokenProvider

java.lang.Object
org.keycloak.models.sessions.infinispan.InfinispanRevokedTokenProvider
All Implemented Interfaces:
RevokedTokenProvider, Provider

public final class InfinispanRevokedTokenProvider extends Object implements RevokedTokenProvider
  • Constructor Details

  • Method Details

    • put

      public boolean put(String id, long lifespanSeconds)
      Description copied from interface: RevokedTokenProvider
      Records a token as revoked.
      Specified by:
      put in interface RevokedTokenProvider
      Parameters:
      id - the unique identifier of the token (typically its jti claim).
      lifespanSeconds - the remaining lifespan of the token in seconds. The revocation entry will be kept for at least this long to prevent the token from being accepted during its remaining validity.
      Returns:
      true if the token was newly revoked; false if it was already revoked.
    • contains

      public boolean contains(String id)
      Description copied from interface: RevokedTokenProvider
      Checks whether a token has been revoked.
      Specified by:
      contains in interface RevokedTokenProvider
      Parameters:
      id - the unique identifier of the token (typically its jti claim).
      Returns:
      true if the token is currently revoked; false otherwise.
    • close

      public void close()
      Specified by:
      close in interface Provider