Skip to content

Commit adfbb17

Browse files
Merge pull request #41 from Mastercard/feature/fixing-readme-jwe-example
Fixing the JWE config example given in the README file
2 parents b0a2989 + bcd5dac commit adfbb17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ JweConfig config = JweConfigBuilder.aJweEncryptionConfig()
162162
.withEncryptionCertificate(encryptionCertificate)
163163
.withDecryptionKey(decryptionKey)
164164
.withEncryptionPath("$.path.to.foo", "$.path.to.encryptedFoo")
165-
.withDecryptionPath("$.path.to.encryptedFoo", "$.path.to.foo")
165+
.withDecryptionPath("$.path.to.encryptedFoo.encryptedValue", "$.path.to.foo")
166166
.withEncryptedValueFieldName("encryptedValue")
167167
.build();
168168
```
@@ -272,7 +272,7 @@ Entire payloads can be decrypted using the "$" operator as decryption path:
272272
```java
273273
JweConfig config = JweConfigBuilder.aJweEncryptionConfig()
274274
.withDecryptionKey(decryptionKey)
275-
.withDecryptionPath("$", "$")
275+
.withDecryptionPath("$.encryptedValue", "$")
276276
//
277277
.build();
278278
```

0 commit comments

Comments
 (0)