SSLContextBuilder loadTrustMaterial
      methods.@Deprecated @Contract(threading=STATELESS) public class TrustSelfSignedStrategy extends Object implements org.apache.hc.core5.ssl.TrustStrategy
TrustAllStrategy, with the only restriction that the certificate chain
 must have length 1. This means this trust strategy does not protect against man-in-the-middle
 attacks. See the TrustAllStrategy for more information and more secure alternatives.| Modifier and Type | Field and Description | 
|---|---|
| static TrustSelfSignedStrategy | INSTANCEDeprecated.  Default instance of  TrustSelfSignedStrategy | 
| Constructor and Description | 
|---|
| TrustSelfSignedStrategy()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isTrusted(X509Certificate[] chain,
         String authType)Deprecated.  | 
public static final TrustSelfSignedStrategy INSTANCE
TrustSelfSignedStrategypublic boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException
isTrusted in interface org.apache.hc.core5.ssl.TrustStrategyCertificateExceptionCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.