We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad448e commit 933f500Copy full SHA for 933f500
src/main/java/com/mastercard/developer/utils/EncryptionUtils.java
@@ -35,6 +35,9 @@ public static Certificate loadEncryptionCertificate(String certificatePath) thro
35
return loadEncryptionCertificate(Files.readAllBytes(Paths.get(certificatePath)));
36
}
37
38
+ /**
39
+ * Populate a X509 encryption certificate object with the certificate data at the given certificate data in bytes.
40
+ */
41
public static Certificate loadEncryptionCertificate(byte[] certificateBytes) throws CertificateException {
42
CertificateFactory factory = CertificateFactory.getInstance("X.509");
43
return factory.generateCertificate(new ByteArrayInputStream(certificateBytes));
0 commit comments