|
19 | 19 | * [Loading the Encryption Certificate](#loading-the-encryption-certificate) |
20 | 20 | * [Loading the Decryption Key](#loading-the-decryption-key) |
21 | 21 | * [Performing Encryption and Decryption](#performing-encryption-and-decryption) |
22 | | - * [Integrating with OpenAPI Generator API Client Libraries](#integrating-with-openapi-generator-api-client-libraries) // Make Generic |
| 22 | + * [Integrating with OpenAPI Generator API Client Libraries](#integrating-with-openapi-generator-api-client-libraries) |
23 | 23 |
|
24 | 24 | ## Overview <a name="overview"></a> |
25 | 25 | Library for Mastercard API compliant payload encryption/decryption. |
@@ -126,7 +126,7 @@ Supported RSA key formats: |
126 | 126 |
|
127 | 127 | This library supports 2 different types of encryption/decryption. Field level encryption (deprecated) and JWE encryption. |
128 | 128 |
|
129 | | -#### JWE Encryption <a name="jwe-encryption-and-decryption"></a> |
| 129 | +#### JWE Encryption and Decryption <a name="jwe-encryption-and-decryption"></a> |
130 | 130 |
|
131 | 131 | + [Introduction](#jwe-introduction) |
132 | 132 | + [Configuring the JWE Encryption](#configuring-the-jwe-encryption) |
@@ -198,7 +198,7 @@ Output: |
198 | 198 | } |
199 | 199 | ``` |
200 | 200 |
|
201 | | -#### Performing Decryption <a name="performing-jwe-decryption"></a> |
| 201 | +#### Performing JWE Decryption <a name="performing-jwe-decryption"></a> |
202 | 202 |
|
203 | 203 | Call `JweEncryption.decryptPayload` with a JSON response payload and a `JweConfig` instance. |
204 | 204 |
|
@@ -289,17 +289,17 @@ Output: |
289 | 289 | } |
290 | 290 | ``` |
291 | 291 |
|
292 | | -#### Performing Field Level Encryption <a name="field-level-encryption-and-decryption"></a> |
| 292 | +#### Field Level Encryption and Decryption <a name="field-level-encryption-and-decryption"></a> |
293 | 293 |
|
294 | | -+ [Introduction](#introduction) |
| 294 | ++ [Introduction](#fle-introduction) |
295 | 295 | + [Configuring the Field Level Encryption](#configuring-the-field-level-encryption) |
296 | | -+ [Performing Encryption](#performing-encryption) |
297 | | -+ [Performing Decryption](#performing-decryption) |
298 | | -+ [Encrypting Entire Payloads](#encrypting-entire-payloads) |
299 | | -+ [Decrypting Entire Payloads](#decrypting-entire-payloads) |
| 296 | ++ [Performing Field Level Encryption](#performing-field-level-encryption) |
| 297 | ++ [Performing Field Level Decryption](#performing-field-level-decryption) |
| 298 | ++ [Encrypting Entire Field Level Encryption Payloads](#encrypting-entire-fle-payloads) |
| 299 | ++ [Decrypting Entire Field Level Encryption Payloads](#decrypting-entire-fle-payloads) |
300 | 300 | + [Using HTTP Headers for Encryption Params](#using-http-headers-for-encryption-params) |
301 | 301 |
|
302 | | -#### Introduction <a name="introduction"></a> |
| 302 | +#### Introduction <a name="fle-introduction"></a> |
303 | 303 |
|
304 | 304 | The core methods responsible for payload encryption and decryption are `encryptPayload` and `decryptPayload` in the `FieldLevelEncryption` class. |
305 | 305 |
|
@@ -334,7 +334,7 @@ See also: |
334 | 334 | * [FieldLevelEncryptionConfig.java](https://www.javadoc.io/page/com.mastercard.developer/client-encryption/latest/com/mastercard/developer/encryption/FieldLevelEncryptionConfig.html) for all config options |
335 | 335 | * [Service Configurations for Client Encryption Java](https://github.com/Mastercard/client-encryption-java/wiki/Service-Configurations-for-Client-Encryption-Java) |
336 | 336 |
|
337 | | -#### Performing Encryption <a name="performing-encryption"></a> |
| 337 | +#### Performing Field Level Encryption <a name="performing-field-level-encryption"></a> |
338 | 338 |
|
339 | 339 | Call `FieldLevelEncryption.encryptPayload` with a JSON request payload and a `FieldLevelEncryptionConfig` instance. |
340 | 340 |
|
@@ -369,7 +369,7 @@ Output: |
369 | 369 | } |
370 | 370 | ``` |
371 | 371 |
|
372 | | -#### Performing Decryption <a name="performing-decryption"></a> |
| 372 | +#### Performing Field Level Decryption <a name="performing-field-level-decryption"></a> |
373 | 373 |
|
374 | 374 | Call `FieldLevelEncryption.decryptPayload` with a JSON response payload and a `FieldLevelEncryptionConfig` instance. |
375 | 375 |
|
@@ -404,7 +404,7 @@ Output: |
404 | 404 | } |
405 | 405 | ``` |
406 | 406 |
|
407 | | -#### Encrypting Entire Payloads <a name="encrypting-entire-payloads"></a> |
| 407 | +#### Encrypting Entire Payloads <a name="encrypting-entire-fle-payloads"></a> |
408 | 408 |
|
409 | 409 | Entire payloads can be encrypted using the "$" operator as encryption path: |
410 | 410 |
|
@@ -435,7 +435,7 @@ Output: |
435 | 435 | } |
436 | 436 | ``` |
437 | 437 |
|
438 | | -#### Decrypting Entire Payloads <a name="decrypting-entire-payloads"></a> |
| 438 | +#### Decrypting Entire Payloads <a name="decrypting-entire-fle-payloads"></a> |
439 | 439 |
|
440 | 440 | Entire payloads can be decrypted using the "$" operator as decryption path: |
441 | 441 |
|
|
0 commit comments