Skip to content

Commit 40e0d22

Browse files
minor fix
1 parent 4c2d30e commit 40e0d22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

MLE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Configure global settings for request MLE using these properties in your `mercha
9797

9898
- **Variable**: `responseMlePrivateKey`
9999
- **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).
101101

102102
---
103103

@@ -223,13 +223,13 @@ var merchantConfig = {
223223
### (vi) Response MLE Configuration with Private Key Object
224224

225225
```javascript
226-
// Load private key programmatically (PEM format only)
226+
// Load private key programmatically (PEM format or JWK object)
227227
var privateKey = loadPrivateKeyFromSomewhere();
228228

229229
// Create merchantConfig with private key object
230230
var merchantConfig = {
231231
enableResponseMleGlobally: true,
232-
responseMlePrivateKey: privateKey, // Must be in PEM format
232+
responseMlePrivateKey: privateKey, // Supports PEM format or JWK object
233233
responseMleKID: "your-key-id"
234234
};
235235
```
@@ -374,7 +374,7 @@ For Response MLE private key files, the following formats are supported:
374374

375375
### (ii) Response MLE
376376
- 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
378378
- The `responseMleKID` parameter is mandatory when response MLE is enabled
379379
- If an API expects a mandatory MLE response but the map specifies non-MLE response, the API might return an error
380380
- Both the private key object and file path approaches are mutually exclusive

0 commit comments

Comments
 (0)