Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

CryptoCertificateManager Methods

Daniel Linsley edited this page Aug 24, 2018 · 4 revisions

Certificate Manager

Methods to fetch or parse certificates. No need to instantiate the CryptoCertificateManager. Its static methods serve as a constructor for CryptoCertificate objects.

CryptoCertificateManager.getHttpsCertificate

Returns array of certificates representing the certificate chain presented by the https server.

Typically the last certificate in the chain is the certificate for the https server.

Signature

CryptoCertificate[] CryptoCertificateManager.getHttpsCertificate(String urlString)

Parameters

Name Type Description
urlString String HTTPS url to get Certificate Chain from

CryptoCertificateManager.parseCertificatePem

Returns a CryptoCertificate object from a PEM encoded string

This method attempts to repair the PEM string in case it is missing or has unexpected new line characters.

Signature

CryptoCertificate CryptoCertificateManager.parseCertificatePem(String pemCertString)

Parameters

Name Type Description
pemCertString String PEM Encoded certificate string