Class JweDecryptionConstraint
- java.lang.Object
 - 
- org.forgerock.openig.tools.jwt.validation.JweDecryptionConstraint
 
 
- 
- All Implemented Interfaces:
 JwtConstraint
public class JweDecryptionConstraint extends Object implements JwtConstraint
Class supportingEncryptedJwtencryption verification with a verificationPurposeand aSecretsProviderresponsible for getting the decryption key. 
- 
- 
Constructor Summary
Constructors Constructor Description JweDecryptionConstraint(SecretsProvider secretsProvider, Purpose<DataDecryptionKey> purpose)Construct aJweDecryptionConstraint. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Promise<Result,NeverThrowsException>apply(ValidatorConstraintContext constraintContext)Apply a constraint to the given JWT. 
 - 
 
- 
- 
Constructor Detail
- 
JweDecryptionConstraint
public JweDecryptionConstraint(SecretsProvider secretsProvider, Purpose<DataDecryptionKey> purpose)
Construct aJweDecryptionConstraint.- Parameters:
 secretsProvider- the instance from where to get the keys.purpose- thePurposeof the decryption.
 
 - 
 
- 
Method Detail
- 
apply
public Promise<Result,NeverThrowsException> apply(ValidatorConstraintContext constraintContext)
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. 
 
 - 
 
 -