Skip to content

Commit 0f5ee88

Browse files
Updating README with non-generic encryption config classes
1 parent 4142a0a commit 0f5ee88

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ String responsePayload = JweEncryption.decryptPayload(encryptedResponsePayload,
155155
```
156156

157157
#### Configuring the JWE Encryption <a name="configuring-the-jwe-encryption"></a>
158-
Use the `JweConfigBuilder` to create `EncryptionConfig` instances. Example:
158+
Use the `JweConfigBuilder` to create `JweConfig` instances. Example:
159159
```java
160-
EncryptionConfig config = JweConfigBuilder.aJweEncryptionConfig()
160+
JweConfig config = JweConfigBuilder.aJweEncryptionConfig()
161161
.withEncryptionCertificate(encryptionCertificate)
162162
.withDecryptionKey(decryptionKey)
163163
.withEncryptionPath("$.path.to.foo", "$.path.to.encryptedFoo")
@@ -171,7 +171,7 @@ See also:
171171

172172
#### Performing JWE Encryption <a name="performing-jwe-encryption"></a>
173173

174-
Call `JweEncryption.encryptPayload` with a JSON request payload and an `EncryptionConfig` instance.
174+
Call `JweEncryption.encryptPayload` with a JSON request payload and an `JweConfig` instance.
175175

176176
Example using the configuration [above](#configuring-the-jwe-encryption):
177177
```java
@@ -204,7 +204,7 @@ Output:
204204

205205
#### Performing JWE Decryption <a name="performing-jwe-decryption"></a>
206206

207-
Call `JweEncryption.decryptPayload` with a JSON response payload and an `EncryptionConfig` instance.
207+
Call `JweEncryption.decryptPayload` with a JSON response payload and an `JweConfig` instance.
208208

209209
Example using the configuration [above](#configuring-the-jwe-encryption):
210210
```java
@@ -240,7 +240,7 @@ Output:
240240
Entire payloads can be encrypted using the "$" operator as encryption path:
241241

242242
```java
243-
EncryptionConfig config = JweConfigBuilder.aJweEncryptionConfig()
243+
JweConfig config = JweConfigBuilder.aJweEncryptionConfig()
244244
.withEncryptionCertificate(encryptionCertificate)
245245
.withEncryptionPath("$", "$")
246246
// ...
@@ -269,7 +269,7 @@ Output:
269269
Entire payloads can be decrypted using the "$" operator as decryption path:
270270

271271
```java
272-
EncryptionConfig config = JweConfigBuilder.aJweEncryptionConfig()
272+
JweConfig config = JweConfigBuilder.aJweEncryptionConfig()
273273
.withDecryptionKey(decryptionKey)
274274
.withDecryptionPath("$", "$")
275275
// ...
@@ -319,9 +319,9 @@ String responsePayload = FieldLevelEncryption.decryptPayload(encryptedResponsePa
319319
```
320320

321321
#### Configuring the Mastercard Encryption <a name="configuring-the-mastercard-encryption"></a>
322-
Use the `FieldLevelEncryptionConfigBuilder` to create `EncryptionConfig` instances. Example:
322+
Use the `FieldLevelEncryptionConfigBuilder` to create `FieldLevelEncryptionConfig` instances. Example:
323323
```java
324-
EncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
324+
FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
325325
.withEncryptionCertificate(encryptionCertificate)
326326
.withDecryptionKey(decryptionKey)
327327
.withEncryptionPath("$.path.to.foo", "$.path.to.encryptedFoo")
@@ -340,7 +340,7 @@ See also:
340340

341341
#### Performing Mastercard Encryption <a name="performing-mastercard-encryption"></a>
342342

343-
Call `FieldLevelEncryption.encryptPayload` with a JSON request payload and an `EncryptionConfig` instance.
343+
Call `FieldLevelEncryption.encryptPayload` with a JSON request payload and an `FieldLevelEncryptionConfig` instance.
344344

345345
Example using the configuration [above](#configuring-the-field-level-encryption):
346346
```java
@@ -375,7 +375,7 @@ Output:
375375

376376
#### Performing Mastercard Decryption <a name="performing-mastercard-decryption"></a>
377377

378-
Call `FieldLevelEncryption.decryptPayload` with a JSON response payload and an `EncryptionConfig` instance.
378+
Call `FieldLevelEncryption.decryptPayload` with a JSON response payload and an `FieldLevelEncryptionConfig` instance.
379379

380380
Example using the configuration [above](#configuring-the-field-level-encryption):
381381
```java
@@ -413,7 +413,7 @@ Output:
413413
Entire payloads can be encrypted using the "$" operator as encryption path:
414414

415415
```java
416-
EncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
416+
FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
417417
.withEncryptionCertificate(encryptionCertificate)
418418
.withEncryptionPath("$", "$")
419419
// ...
@@ -444,7 +444,7 @@ Output:
444444
Entire payloads can be decrypted using the "$" operator as decryption path:
445445

446446
```java
447-
EncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
447+
FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
448448
.withDecryptionKey(decryptionKey)
449449
.withDecryptionPath("$", "$")
450450
// ...
@@ -478,9 +478,9 @@ Here is how to configure the library for using HTTP headers instead.
478478

479479
##### Configuration for Using HTTP Headers <a name="configuration-for-using-http-headers"></a>
480480

481-
Call `with{Param}HeaderName` instead of `with{Param}FieldName` when building an `EncryptionConfig` instance. Example:
481+
Call `with{Param}HeaderName` instead of `with{Param}FieldName` when building an `FieldLevelEncryptionConfig` instance. Example:
482482
```java
483-
EncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
483+
FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder.aFieldLevelEncryptionConfig()
484484
.withEncryptionCertificate(encryptionCertificate)
485485
.withDecryptionKey(decryptionKey)
486486
.withEncryptionPath("$", "$")

0 commit comments

Comments
 (0)