org.apache.hc.client5.http.ssl

## Interface HttpClientHostnameVerifier

- All Superinterfaces:
    HostnameVerifier
  All Known Implementing Classes:
    DefaultHostnameVerifier

      @Contract(threading=STATELESS)
      public interface HttpClientHostnameVerifier
      extends HostnameVerifier

  Extended `HostnameVerifier` interface.
  Since:
    5.0

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `verify(String host, 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(String host,
                      X509Certificate cert)
               throws 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:
        `SSLException`

Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.