Class DefaultHostnameVerifier

  • All Implemented Interfaces:
    javax.net.ssl.HostnameVerifier

    @Contract(threading=IMMUTABLE_CONDITIONAL)
    public final class DefaultHostnameVerifier
    extends java.lang.Object
    implements javax.net.ssl.HostnameVerifier
    Default HostnameVerifier implementation.
    Since:
    4.4
    • Constructor Detail

      • DefaultHostnameVerifier

        public DefaultHostnameVerifier​(PublicSuffixMatcher publicSuffixMatcher)
      • DefaultHostnameVerifier

        public DefaultHostnameVerifier()
    • Method Detail

      • verify

        public boolean verify​(java.lang.String host,
                              javax.net.ssl.SSLSession session)
        Specified by:
        verify in interface javax.net.ssl.HostnameVerifier
      • verify

        public void verify​(java.lang.String host,
                           java.security.cert.X509Certificate cert)
                    throws javax.net.ssl.SSLException
        Throws:
        javax.net.ssl.SSLException