Package org.keycloak.revoketokens.jpa
Class JpaRevokedTokenProvider
java.lang.Object
org.keycloak.revoketokens.jpa.JpaRevokedTokenProvider
- All Implemented Interfaces:
RevokedTokenProvider,Provider
-
Constructor Summary
ConstructorsConstructorDescriptionJpaRevokedTokenProvider(KeycloakSession session, LocalCache<String, Long> cache) -
Method Summary
-
Constructor Details
-
JpaRevokedTokenProvider
-
-
Method Details
-
put
Description copied from interface:RevokedTokenProviderRecords a token as revoked.- Specified by:
putin interfaceRevokedTokenProvider- Parameters:
id- the unique identifier of the token (typically itsjticlaim).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:
trueif the token was newly revoked;falseif it was already revoked.
-
contains
Description copied from interface:RevokedTokenProviderChecks whether a token has been revoked.- Specified by:
containsin interfaceRevokedTokenProvider- Parameters:
id- the unique identifier of the token (typically itsjticlaim).- Returns:
trueif the token is currently revoked;falseotherwise.
-
close
public void close()
-