public class StandardJwtRevocationService extends Object implements JwtRevocationService
| Modifier and Type | Field and Description |
|---|---|
private static org.slf4j.Logger |
LOGGER |
private static Scope |
SCOPE |
private StateManager |
stateManager |
| Constructor and Description |
|---|
StandardJwtRevocationService(StateManager stateManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteExpired()
Delete Expired Revocations is synchronized is avoid losing updates from setRevoked()
|
private StateMap |
getStateMap() |
boolean |
isRevoked(String id)
Is JSON Web Token Identifier Revoked based on State Map Status
|
void |
setRevoked(String id,
Instant expiration)
Set Revoked Status is synchronized to avoid competing changes to the State Map
|
private static final org.slf4j.Logger LOGGER
private static final Scope SCOPE
private final StateManager stateManager
public StandardJwtRevocationService(StateManager stateManager)
public void deleteExpired()
deleteExpired in interface JwtRevocationServicepublic boolean isRevoked(String id)
isRevoked in interface JwtRevocationServiceid - JSON Web Token Identifierpublic void setRevoked(String id, Instant expiration)
setRevoked in interface JwtRevocationServiceid - JSON Web Token Identifierexpiration - Expiration of Revocation Status after which the status record can be removedprivate StateMap getStateMap()
Copyright © 2023 Apache NiFi Project. All rights reserved.