Package org.apache.http.conn.ssl
Class TrustSelfSignedStrategy
- java.lang.Object
-
- org.apache.http.conn.ssl.TrustSelfSignedStrategy
-
- All Implemented Interfaces:
TrustStrategy
,org.apache.http.ssl.TrustStrategy
public class TrustSelfSignedStrategy extends java.lang.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
Fields Modifier and Type Field Description static TrustSelfSignedStrategy
INSTANCE
-
Constructor Summary
Constructors Constructor Description TrustSelfSignedStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isTrusted(java.security.cert.X509Certificate[] chain, java.lang.String authType)
-
-
-
Field Detail
-
INSTANCE
public static final TrustSelfSignedStrategy INSTANCE
-
-