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.Loggerprivate static final Scopeprivate final StateManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete Expired Revocations is synchronized is avoid losing updates from setRevoked()private StateMapbooleanIs JSON Web Token Identifier Revoked based on State Map StatusvoidsetRevoked(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:
deleteExpiredin interfaceJwtRevocationService
-
isRevoked
Is JSON Web Token Identifier Revoked based on State Map Status- Specified by:
isRevokedin 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:
setRevokedin interfaceJwtRevocationService- Parameters:
id- JSON Web Token Identifierexpiration- Expiration of Revocation Status after which the status record can be removed
-
getStateMap
-