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 TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType) static IgnorantX509TrustManagerReturns 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:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-