java.lang.Object
org.newsclub.net.unix.ssl.IgnorantX509TrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
An ignorant
X509TrustManager
that doesn't check certificates at all.
IMPORTANT: Not checking certificates is a bad idea. The rationale for providing this class nevertheless is that it's easier to search for usages of this class than to search for usages of some lookalikes.
- Author:
- Christian Kohlschütter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] chain, String authType) void
checkServerTrusted
(X509Certificate[] chain, String authType) static IgnorantX509TrustManager
Returns the singleton instance.
-
Method Details
-
getInstance
Returns the singleton instance.- Returns:
- The instance.
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-