Class CertificateUtils
java.lang.Object
io.grpc.xds.internal.security.trust.CertificateUtils
Contains certificate utility method(s).
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateKeygetPrivateKey(InputStream inputStream) Generates aPrivateKeyfrom theInputStream.static X509Certificate[]toX509Certificates(InputStream inputStream) Generates X509Certificate array from theInputStream.
-
Method Details
-
toX509Certificates
public static X509Certificate[] toX509Certificates(InputStream inputStream) throws CertificateException, IOException Generates X509Certificate array from theInputStream.- Throws:
CertificateExceptionIOException
-
getPrivateKey
Generates aPrivateKeyfrom theInputStream.- Throws:
Exception
-