Class SSLConfiguration

    • Constructor Detail

      • SSLConfiguration

        public SSLConfiguration()
    • Method Detail

      • setTrustRootPath

        public void setTrustRootPath​(String trustRootPath)
      • isStrictHostnames

        public boolean isStrictHostnames()
      • setStrictHostnames

        public void setStrictHostnames​(boolean hostNameVerificationOff)
      • isUseDefaultTrustManager

        public boolean isUseDefaultTrustManager()
      • setUseDefaultTrustManager

        public void setUseDefaultTrustManager​(boolean useDefaultTrustManager)
      • getTrustRootCertDN

        public String getTrustRootCertDN()
        This is used in the trust root manager to check against the certificate DN. This is useful if there are self-signed certs, since when the TrustManager invokes X509TrustManager.checkServerTrusted(X509Certificate[], String) it invokes checkServerDN to verify that the name on the certificate matches the lookup. Normally you do not have to set this BUT in cases of self-signed certs, it may need to be manually set since the lookup for the hostname (especially localhost) might not work quite as expected without a lot of hacking of the DNS. Most common use case is this is in the client's SSL configuration and is set to "CN=localhost" for a self-signed cert.
        Returns:
      • setTrustRootCertDN

        public void setTrustRootCertDN​(String trustRootCertDN)
      • hasCertDN

        public boolean hasCertDN()
      • getTrustRootType

        public String getTrustRootType()
      • setTrustRootType

        public void setTrustRootType​(String trustRootType)
      • getTrustRootPassword

        public String getTrustRootPassword()
      • setTrustRootPassword

        public void setTrustRootPassword​(String trustRootPassword)
      • getTlsVersion

        public String getTlsVersion()
      • setTlsVersion

        public void setTlsVersion​(String tlsVersion)
      • getTrustrootPath

        public String getTrustrootPath()