Class SslUtils


  • public class SslUtils
    extends java.lang.Object
    • Constructor Detail

      • SslUtils

        public SslUtils()
    • 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.NoSuchAlgorithmException
        java.security.KeyManagementException
      • getTrustAllHostnameVerifier

        public static javax.net.ssl.HostnameVerifier getTrustAllHostnameVerifier()
      • getTrustAllManager

        public static javax.net.ssl.X509TrustManager getTrustAllManager()