Package org.apache.hc.client5.http.ssl
Class TrustAllStrategy
- java.lang.Object
-
- org.apache.hc.client5.http.ssl.TrustAllStrategy
-
- All Implemented Interfaces:
org.apache.hc.core5.ssl.TrustStrategy
@Contract(threading=STATELESS) public class TrustAllStrategy extends java.lang.Object implements org.apache.hc.core5.ssl.TrustStrategyA trust strategy that accepts all certificates as trusted. Verification of all other certificates is done by the trust manager configured in the SSL context.- Since:
- 4.5.4, 5.0
-
-
Field Summary
Fields Modifier and Type Field Description static TrustAllStrategyINSTANCE
-
Constructor Summary
Constructors Constructor Description TrustAllStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
-
-
-
Field Detail
-
INSTANCE
public static final TrustAllStrategy INSTANCE
-
-