Package co.elastic.apm.agent.report.ssl
Class SslUtils
- java.lang.Object
-
- co.elastic.apm.agent.report.ssl.SslUtils
-
public class SslUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SslUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.net.ssl.SSLSocketFactorycreateTrustAllSocketFactory()static javax.net.ssl.SSLSocketFactorygetSSLSocketFactory(boolean validateCertificates)static javax.net.ssl.HostnameVerifiergetTrustAllHostnameVerifier()static javax.net.ssl.X509TrustManagergetTrustAllManager()
-
-
-
Method Detail
-
getSSLSocketFactory
@Nullable public static javax.net.ssl.SSLSocketFactory getSSLSocketFactory(boolean validateCertificates)
-
createTrustAllSocketFactory
public static javax.net.ssl.SSLSocketFactory createTrustAllSocketFactory() throws java.security.NoSuchAlgorithmException, java.security.KeyManagementException- Throws:
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementException
-
getTrustAllHostnameVerifier
public static javax.net.ssl.HostnameVerifier getTrustAllHostnameVerifier()
-
getTrustAllManager
public static javax.net.ssl.X509TrustManager getTrustAllManager()
-
-