Class JweDecryptionConstraint
java.lang.Object
org.forgerock.openig.tools.jwt.validation.JweDecryptionConstraint
- All Implemented Interfaces:
JwtConstraint
Class supporting
EncryptedJwt
encryption verification with a verification Purpose
and a SecretsProvider
responsible for getting the decryption key.-
Constructor Summary
ConstructorDescriptionJweDecryptionConstraint
(SecretsProvider secretsProvider, Purpose<DataDecryptionKey> purpose) Construct aJweDecryptionConstraint
. -
Method Summary
Modifier and TypeMethodDescriptionapply
(ValidatorConstraintContext constraintContext) Apply a constraint to the given JWT.
-
Constructor Details
-
JweDecryptionConstraint
Construct aJweDecryptionConstraint
.- Parameters:
secretsProvider
- the instance from where to get the keys.purpose
- thePurpose
of the decryption.
-
-
Method Details
-
apply
Description copied from interface:JwtConstraint
Apply a constraint to the given JWT.- Specified by:
apply
in interfaceJwtConstraint
- Parameters:
constraintContext
- The validation context used to hold data between constraints validation- Returns:
- a
Result
promise for thisJwtConstraint
.
-