public static class TLSUtils.AcceptAllTrustManager
extends java.lang.Object
implements javax.net.ssl.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(java.security.cert.X509Certificate[] arg0,
java.lang.String arg1) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] arg0,
java.lang.String arg1) |
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
public void checkClientTrusted(java.security.cert.X509Certificate[] arg0,
java.lang.String arg1)
throws java.security.cert.CertificateException
checkClientTrusted in interface javax.net.ssl.X509TrustManagerjava.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] arg0,
java.lang.String arg1)
throws java.security.cert.CertificateException
checkServerTrusted in interface javax.net.ssl.X509TrustManagerjava.security.cert.CertificateExceptionpublic java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface javax.net.ssl.X509TrustManager