@@ -151,7 +151,7 @@ String responsePayload = JweEncryption.decryptPayload(encryptedResponsePayload,
151151```
152152
153153#### Configuring the JWE Encryption <a name =" configuring-the-jwe-encryption " ></a >
154- Use the ` FieldLevelEncryptionConfigBuilder ` to create ` FieldLevelEncryptionConfig ` instances. Example:
154+ Use the ` JweConfigBuilder ` to create ` EncryptionConfig ` instances. Example:
155155``` java
156156EncryptionConfig config = JweConfigBuilder . aJweEncryptionConfig()
157157 .withEncryptionCertificate(encryptionCertificate)
@@ -167,7 +167,7 @@ See also:
167167
168168#### Performing JWE Encryption <a name =" performing-jwe-encryption " ></a >
169169
170- Call ` JweEncryption.encryptPayload ` with a JSON request payload and a ` JweConfig ` instance.
170+ Call ` JweEncryption.encryptPayload ` with a JSON request payload and an ` EncryptionConfig ` instance.
171171
172172Example using the configuration [ above] ( #configuring-the-jwe-encryption ) :
173173``` java
@@ -200,7 +200,7 @@ Output:
200200
201201#### Performing JWE Decryption <a name =" performing-jwe-decryption " ></a >
202202
203- Call ` JweEncryption.decryptPayload ` with a JSON response payload and a ` JweConfig ` instance.
203+ Call ` JweEncryption.decryptPayload ` with a JSON response payload and an ` EncryptionConfig ` instance.
204204
205205Example using the configuration [ above] ( #configuring-the-jwe-encryption ) :
206206``` java
@@ -236,7 +236,7 @@ Output:
236236Entire payloads can be encrypted using the "$" operator as encryption path:
237237
238238``` java
239- JweConfig config = JweConfigBuilder . aJweEncryptionConfig()
239+ EncryptionConfig config = JweConfigBuilder . aJweEncryptionConfig()
240240 .withEncryptionCertificate(encryptionCertificate)
241241 .withEncryptionPath(" $" , " $" )
242242 // ...
@@ -249,7 +249,7 @@ String payload = "{" +
249249 " \" sensitiveField1\" : \" sensitiveValue1\" ," +
250250 " \" sensitiveField2\" : \" sensitiveValue2\" " +
251251 " }" ;
252- String encryptedPayload = FieldLevelEncryption . encryptPayload(payload, config);
252+ String encryptedPayload = JweEncryption . encryptPayload(payload, config);
253253System . out. println(new GsonBuilder (). setPrettyPrinting(). create(). toJson(new JsonParser (). parse(encryptedPayload)));
254254```
255255
@@ -265,7 +265,7 @@ Output:
265265Entire payloads can be decrypted using the "$" operator as decryption path:
266266
267267``` java
268- JweConfig config = JweConfigBuilder . aJweEncryptionConfig()
268+ EncryptionConfig config = JweConfigBuilder . aJweEncryptionConfig()
269269 .withDecryptionKey(decryptionKey)
270270 .withDecryptionPath(" $" , " $" )
271271 // ...
@@ -315,9 +315,9 @@ String responsePayload = FieldLevelEncryption.decryptPayload(encryptedResponsePa
315315```
316316
317317#### Configuring the Field Level Encryption <a name =" configuring-the-field-level-encryption " ></a >
318- Use the ` FieldLevelEncryptionConfigBuilder ` to create ` FieldLevelEncryptionConfig ` instances. Example:
318+ Use the ` FieldLevelEncryptionConfigBuilder ` to create ` EncryptionConfig ` instances. Example:
319319``` java
320- FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
320+ EncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
321321 .withEncryptionCertificate(encryptionCertificate)
322322 .withDecryptionKey(decryptionKey)
323323 .withEncryptionPath(" $.path.to.foo" , " $.path.to.encryptedFoo" )
@@ -336,7 +336,7 @@ See also:
336336
337337#### Performing Field Level Encryption <a name =" performing-field-level-encryption " ></a >
338338
339- Call ` FieldLevelEncryption.encryptPayload ` with a JSON request payload and a ` FieldLevelEncryptionConfig ` instance.
339+ Call ` FieldLevelEncryption.encryptPayload ` with a JSON request payload and an ` EncryptionConfig ` instance.
340340
341341Example using the configuration [ above] ( #configuring-the-field-level-encryption ) :
342342``` java
@@ -371,7 +371,7 @@ Output:
371371
372372#### Performing Field Level Decryption <a name =" performing-field-level-decryption " ></a >
373373
374- Call ` FieldLevelEncryption.decryptPayload ` with a JSON response payload and a ` FieldLevelEncryptionConfig ` instance.
374+ Call ` FieldLevelEncryption.decryptPayload ` with a JSON response payload and an ` EncryptionConfig ` instance.
375375
376376Example using the configuration [ above] ( #configuring-the-field-level-encryption ) :
377377``` java
@@ -409,7 +409,7 @@ Output:
409409Entire payloads can be encrypted using the "$" operator as encryption path:
410410
411411``` java
412- FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
412+ EncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
413413 .withEncryptionCertificate(encryptionCertificate)
414414 .withEncryptionPath(" $" , " $" )
415415 // ...
@@ -440,7 +440,7 @@ Output:
440440Entire payloads can be decrypted using the "$" operator as decryption path:
441441
442442``` java
443- FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
443+ EncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
444444 .withDecryptionKey(decryptionKey)
445445 .withDecryptionPath(" $" , " $" )
446446 // ...
@@ -474,9 +474,9 @@ Here is how to configure the library for using HTTP headers instead.
474474
475475##### Configuration for Using HTTP Headers <a name =" configuration-for-using-http-headers " ></a >
476476
477- Call ` with{Param}HeaderName ` instead of ` with{Param}FieldName ` when building a ` FieldLevelEncryptionConfig ` instance. Example:
477+ Call ` with{Param}HeaderName ` instead of ` with{Param}FieldName ` when building an ` EncryptionConfig ` instance. Example:
478478``` java
479- FieldLevelEncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
479+ EncryptionConfig config = FieldLevelEncryptionConfigBuilder . aFieldLevelEncryptionConfig()
480480 .withEncryptionCertificate(encryptionCertificate)
481481 .withDecryptionKey(decryptionKey)
482482 .withEncryptionPath(" $" , " $" )
0 commit comments