public static class TLSUtils.AcceptAllTrustManager extends Object implements X509TrustManager
X509TrustManager that doesn't validate X.509 certificates.
Connections that use this TrustManager will just be encrypted, without any guarantee that the counter part is actually the intended one. Man-in-the-Middle attacks will be possible, since any certificate presented by the attacker will be considered valid.
| Constructor and Description |
|---|
AcceptAllTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] arg0,
String arg1) |
void |
checkServerTrusted(X509Certificate[] arg0,
String arg1) |
X509Certificate[] |
getAcceptedIssuers() |
public AcceptAllTrustManager()
public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
checkClientTrusted in interface X509TrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException
checkServerTrusted in interface X509TrustManagerCertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManager