Package io.grpc.internal
Class CertificateUtils
java.lang.Object
io.grpc.internal.CertificateUtils
Contains certificate/key PEM file utility method(s) for internal usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TrustManager[]
createTrustManager
(byte[] rootCerts) Creates X509TrustManagers using the provided CA certs.static TrustManager[]
createTrustManager
(InputStream rootCerts) Creates X509TrustManagers using the provided input stream of CA certs.
-
Constructor Details
-
CertificateUtils
public CertificateUtils()
-
-
Method Details
-
createTrustManager
Creates X509TrustManagers using the provided CA certs.- Throws:
GeneralSecurityException
-
createTrustManager
public static TrustManager[] createTrustManager(InputStream rootCerts) throws GeneralSecurityException Creates X509TrustManagers using the provided input stream of CA certs.- Throws:
GeneralSecurityException
-