TrustSelfSignedStrategy (Apache HttpClient 4.5.13 API)
Date: 2020-10-03

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.http.conn.ssl
Class TrustSelfSignedStrategy

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

All Implemented Interfaces:
  org.apache.http.ssl.TrustStrategy

    public class TrustSelfSignedStrategy

extends Object
implements TrustStrategy

A trust strategy that accepts self-signed certificates as trusted. Verification of all other certificates is done by the trust manager configured in the SSL context.

Since:
  4.1

Field Summary
`static TrustSelfSignedStrategy` | `INSTANCE`

Constructor Summary
`TrustSelfSignedStrategy()`

Method Summary
`boolean` | `isTrusted(X509Certificate[] chain, String authType)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### INSTANCE

    public static final TrustSelfSignedStrategy INSTANCE

Constructor Detail

### TrustSelfSignedStrategy

    public TrustSelfSignedStrategy()

Method Detail

### isTrusted

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

  Specified by:
    `isTrusted` in interface `org.apache.http.ssl.TrustStrategy`
  Throws:
    `CertificateException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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