Skip to content

Commit 933f500

Browse files
author
e113028
committed
Updated the comments as per new change/support.
1 parent 1ad448e commit 933f500

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/mastercard/developer/utils/EncryptionUtils.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public static Certificate loadEncryptionCertificate(String certificatePath) thro
3535
return loadEncryptionCertificate(Files.readAllBytes(Paths.get(certificatePath)));
3636
}
3737

38+
/**
39+
* Populate a X509 encryption certificate object with the certificate data at the given certificate data in bytes.
40+
*/
3841
public static Certificate loadEncryptionCertificate(byte[] certificateBytes) throws CertificateException {
3942
CertificateFactory factory = CertificateFactory.getInstance("X.509");
4043
return factory.generateCertificate(new ByteArrayInputStream(certificateBytes));

0 commit comments

Comments
 (0)