Package org.apache.hc.client5.http.ssl
Class TrustSelfSignedStrategy
java.lang.Object
org.apache.hc.client5.http.ssl.TrustSelfSignedStrategy
- All Implemented Interfaces:
org.apache.hc.core5.ssl.TrustStrategy
@Contract(threading=STATELESS)
public class TrustSelfSignedStrategy
extends Object
implements org.apache.hc.core5.ssl.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
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
TrustSelfSignedStrategy
public TrustSelfSignedStrategy()
-
-
Method Details
-
isTrusted
- Specified by:
isTrustedin interfaceorg.apache.hc.core5.ssl.TrustStrategy- Throws:
CertificateException
-