You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MLE.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ Configure global settings for request MLE using these properties in your `mercha
97
97
98
98
-**Variable**: `responseMlePrivateKey`
99
99
-**Type**: `PrivateKey`
100
-
-**Description**: Direct private key object for response decryption. **Note**: Only PEM format is supported for the private key object.
100
+
-**Description**: Direct private key object for response decryption. **Note**: Supports both PEM format private key objects and raw JWK (JSON Web Key) objects. When using JWK format, ensure the key contains the required cryptographic parameters for RSA private keys (n, e, d, p, q, dp, dq, qi).
101
101
102
102
---
103
103
@@ -223,13 +223,13 @@ var merchantConfig = {
223
223
### (vi) Response MLE Configuration with Private Key Object
224
224
225
225
```javascript
226
-
// Load private key programmatically (PEM format only)
226
+
// Load private key programmatically (PEM format or JWK object)
227
227
var privateKey =loadPrivateKeyFromSomewhere();
228
228
229
229
// Create merchantConfig with private key object
230
230
var merchantConfig = {
231
231
enableResponseMleGlobally:true,
232
-
responseMlePrivateKey: privateKey, //Must be in PEM format
232
+
responseMlePrivateKey: privateKey, //Supports PEM format or JWK object
233
233
responseMleKID:"your-key-id"
234
234
};
235
235
```
@@ -374,7 +374,7 @@ For Response MLE private key files, the following formats are supported:
374
374
375
375
### (ii) Response MLE
376
376
- Response MLE requires either `responseMlePrivateKey` object OR `responseMlePrivateKeyFilePath` (not both)
377
-
- The `responseMlePrivateKey` object must be in PEM format
377
+
- The `responseMlePrivateKey` object supports both PEM format and JWK (JSON Web Key) objects
378
378
- The `responseMleKID` parameter is mandatory when response MLE is enabled
379
379
- If an API expects a mandatory MLE response but the map specifies non-MLE response, the API might return an error
380
380
- Both the private key object and file path approaches are mutually exclusive
0 commit comments