Class TestCertificates.CertData
- java.lang.Object
-
- com.google.api.client.testing.json.webtoken.TestCertificates.CertData
-
- Enclosing class:
- TestCertificates
@Beta public static class TestCertificates.CertData extends Object
Beta
Wrapper for a PEM encoded certificate providing utility routines.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBase64Der()
Certificate
getCertfificate()
byte[]
getDer()
X509TrustManager
getTrustManager()
-
-
-
Constructor Detail
-
CertData
public CertData(String pem)
-
-
Method Detail
-
getCertfificate
public Certificate getCertfificate() throws IOException, CertificateException
- Throws:
IOException
CertificateException
-
getDer
public byte[] getDer() throws IOException
- Throws:
IOException
-
getBase64Der
public String getBase64Der() throws IOException
- Throws:
IOException
-
getTrustManager
public X509TrustManager getTrustManager() throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
-