org.apache.http.conn.ssl

## Class TrustSelfSignedStrategy

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

- All Implemented Interfaces:
    TrustStrategy

      public class TrustSelfSignedStrategy
      extends Object
      implements TrustStrategy

  接受自签名证书作为受信任的信任策略。 所有其他证书的验证由在SSL上下文中配置的信任管理器完成。
  从以下版本开始：
    4.1

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static TrustSelfSignedStrategy` | `INSTANCE`

  - ### 构造方法摘要

    构造方法
    Constructor and Description
    `TrustSelfSignedStrategy()`

  - ### 方法摘要

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isTrusted(X509Certificate[] chain, String authType)`

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

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

- - ### 字段详细信息

    - #### INSTANCE

          public static final TrustSelfSignedStrategy INSTANCE

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

    - #### TrustSelfSignedStrategy

          public TrustSelfSignedStrategy()

  - ### 方法详细信息

    - #### isTrusted

          public boolean isTrusted(X509Certificate[] chain,
                          String authType)
                            throws CertificateException

      Specified by:
        `isTrusted`在接口 `TrustStrategy`
      异常
        `CertificateException`

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

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