Class TestCertificates.CertData (1.43.1)

public static class TestCertificates.CertData

Beta
Wrapper for a PEM encoded certificate providing utility routines.

Inheritance

java.lang.Object > TestCertificates.CertData

Constructors

CertData(String pem)

public CertData(String pem)
Parameter
NameDescription
pemString

Methods

getBase64Der()

public String getBase64Der()
Returns
TypeDescription
String
Exceptions
TypeDescription
IOException

getCertfificate()

public Certificate getCertfificate()
Returns
TypeDescription
Certificate
Exceptions
TypeDescription
IOException
CertificateException

getDer()

public byte[] getDer()
Returns
TypeDescription
byte[]
Exceptions
TypeDescription
IOException

getTrustManager()

public X509TrustManager getTrustManager()
Returns
TypeDescription
X509TrustManager
Exceptions
TypeDescription
IOException
GeneralSecurityException