Interface HttpClientHostnameVerifier

  • All Superinterfaces:
    javax.net.ssl.HostnameVerifier
    All Known Implementing Classes:
    DefaultHostnameVerifier

    @Contract(threading=STATELESS)
    public interface HttpClientHostnameVerifier
    extends javax.net.ssl.HostnameVerifier
    Extended HostnameVerifier interface.
    Since:
    5.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void verify​(java.lang.String host, java.security.cert.X509Certificate cert)
      Verifies the supplied server X509Certificate and ensures it matches the original host name.
      • Methods inherited from interface javax.net.ssl.HostnameVerifier

        verify
    • Method Detail

      • verify

        void verify​(java.lang.String host,
                    java.security.cert.X509Certificate cert)
             throws javax.net.ssl.SSLException
        Verifies the supplied server X509Certificate and ensures it matches the original host name.
        Parameters:
        host - the original host name.
        cert - the server certificate;
        Throws:
        javax.net.ssl.SSLException