Class StandardJwtRevocationService
java.lang.Object
org.apache.nifi.web.security.jwt.revocation.StandardJwtRevocationService
- All Implemented Interfaces:
JwtRevocationService
Standard JSON Web Token Revocation Service using State Manager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private static final Scope
private final StateManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete Expired Revocations is synchronized is avoid losing updates from setRevoked()private StateMap
boolean
Is JSON Web Token Identifier Revoked based on State Map Statusvoid
setRevoked
(String id, Instant expiration) Set Revoked Status is synchronized to avoid competing changes to the State Map
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SCOPE
-
stateManager
-
-
Constructor Details
-
StandardJwtRevocationService
-
-
Method Details
-
deleteExpired
public void deleteExpired()Delete Expired Revocations is synchronized is avoid losing updates from setRevoked()- Specified by:
deleteExpired
in interfaceJwtRevocationService
-
isRevoked
Is JSON Web Token Identifier Revoked based on State Map Status- Specified by:
isRevoked
in interfaceJwtRevocationService
- Parameters:
id
- JSON Web Token Identifier- Returns:
- Revoked Status
-
setRevoked
Set Revoked Status is synchronized to avoid competing changes to the State Map- Specified by:
setRevoked
in interfaceJwtRevocationService
- Parameters:
id
- JSON Web Token Identifierexpiration
- Expiration of Revocation Status after which the status record can be removed
-
getStateMap
-