File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/mastercard/developer/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public static PrivateKey loadDecryptionKey(InputStream keyDataStream) throws Gen
6464 keyDataString = keyDataString .replace (PKCS_1_PEM_HEADER , "" );
6565 keyDataString = keyDataString .replace (PKCS_1_PEM_FOOTER , "" );
6666 keyDataString = keyDataString .replace ("\n " , "" );
67- keyDataString = keyDataString .replace ("\r \n " , "" );
67+ keyDataString = keyDataString .replace ("\r " , "" );
6868 return readPkcs1PrivateKey (base64Decode (keyDataString ));
6969 }
7070
@@ -73,7 +73,7 @@ public static PrivateKey loadDecryptionKey(InputStream keyDataStream) throws Gen
7373 keyDataString = keyDataString .replace (PKCS_8_PEM_HEADER , "" );
7474 keyDataString = keyDataString .replace (PKCS_8_PEM_FOOTER , "" );
7575 keyDataString = keyDataString .replace ("\n " , "" );
76- keyDataString = keyDataString .replace ("\r \n " , "" );
76+ keyDataString = keyDataString .replace ("\r " , "" );
7777 return readPkcs8PrivateKey (base64Decode (keyDataString ));
7878 }
7979
You can’t perform that action at this time.
0 commit comments