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
ConstructorsConstructorDescriptionJweDecryptionConstraint(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- thePurposeof the decryption.
 
 - 
 - 
Method Details
- 
apply
Description copied from interface:JwtConstraintApply a constraint to the given JWT.- Specified by:
 applyin interfaceJwtConstraint- Parameters:
 constraintContext- The validation context used to hold data between constraints validation- Returns:
 - a 
Resultpromise for thisJwtConstraint. 
 
 -