org.apache.http.conn.ssl

## Class DefaultHostnameVerifier

- java.lang.Object
- - org.apache.http.conn.ssl.DefaultHostnameVerifier

- All Implemented Interfaces:
    HostnameVerifier

      @Contract(threading=IMMUTABLE_CONDITIONAL)
      public final class DefaultHostnameVerifier
      extends Object
      implements HostnameVerifier

  默认`HostnameVerifier`实现。
  从以下版本开始：
    4.4

- - ### 构造方法摘要

    构造方法
    Constructor and Description
    `DefaultHostnameVerifier()`
    `DefaultHostnameVerifier(PublicSuffixMatcher publicSuffixMatcher)`

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `verify(String host, SSLSession session)`
    `void` | `verify(String host, X509Certificate cert)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造方法详细信息

    - #### DefaultHostnameVerifier

          public DefaultHostnameVerifier(PublicSuffixMatcher publicSuffixMatcher)

    - #### DefaultHostnameVerifier

          public DefaultHostnameVerifier()

  - ### 方法详细信息

    - #### verify

          public boolean verify(String host,
                       SSLSession session)

      Specified by:
        `verify`在界面 `HostnameVerifier`

    - #### verify

          public void verify(String host,
                    X509Certificate cert)
                      throws SSLException

      异常
        `SSLException`

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

本帮助文档是使用 《谷歌翻译》翻译，请与英文版配合使用 by--QQ:654638585