Contents

Popular
 Contents

Decryption policy helps in decrypting messages received from target endpoint or an API consumer. To decrypt the data accurately, you must know the correct key and algorithm, using which the data has been encrypted.

Configuration


Figure 1: Decrypt Message Policy Configuration

Example

For the same project as used in the Encryption section, configure a Decrypt Message policy as shown below and add it to Proxy Response. Algorithm and key used must be same as the ones used in Encrypt Message policy.


Figure 2: Decrypt Message policy properties with values provided in the Example

Send the request. Now, Target Response will be encrypted and this encrypted message will be decrypted in Proxy Response. Result would be same as the one without Encrypt and Decrypt policies:

{"Envelope": {"Body": {"ConversionRateResponse": {"ConversionRateResult": "0.0157"}}}}
Adaptavist ThemeBuilder EngineAtlassian Confluence