File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/main/java/com/mastercard/developer/encryption Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,9 @@ Certificate encryptionCertificate = EncryptionUtils.loadEncryptionCertificate("<
6969A ` PrivateKey ` key object can be created from a PKCS #12 file by calling the ` EncryptionUtils.loadDecryptionKey ` method:
7070``` java
7171PrivateKey decryptionKey = EncryptionUtils . loadDecryptionKey(
72- " <insert PKCS#12 key file path>" ,
73- " <insert key alias>" ,
74- " <insert key password>" );
72+ " <insert PKCS#12 key file path>" ,
73+ " <insert key alias>" ,
74+ " <insert key password>" );
7575```
7676
7777#### From a PKCS #8 Formatted Key
Original file line number Diff line number Diff line change 88import com .jayway .jsonpath .JsonPath ;
99import com .jayway .jsonpath .Option ;
1010import com .jayway .jsonpath .spi .json .GsonJsonProvider ;
11- import com .jayway .jsonpath .spi .mapper .GsonMappingProvider ;
1211import org .apache .commons .codec .DecoderException ;
1312import org .apache .commons .codec .binary .Base64 ;
1413import org .apache .commons .codec .binary .Hex ;
@@ -47,7 +46,6 @@ public class FieldLevelEncryption {
4746
4847 private static final Configuration jsonPathConfig = new Configuration .ConfigurationBuilder ()
4948 .jsonProvider (new GsonJsonProvider ())
50- .mappingProvider (new GsonMappingProvider ())
5149 .options (Option .SUPPRESS_EXCEPTIONS )
5250 .build ();
5351
You can’t perform that action at this time.
0 commit comments