public final class X509TrustAll extends Object implements X509TrustManager, HostnameVerifier
| Constructor and Description |
|---|
X509TrustAll() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] arg0,
String arg1) |
void |
checkServerTrusted(X509Certificate[] arg0,
String arg1) |
X509Certificate[] |
getAcceptedIssuers() |
static void |
ignoreSSLCertificate() |
static void |
restoreSSLCertificate() |
boolean |
verify(String hostname,
SSLSession session) |
public boolean verify(String hostname, SSLSession session)
verify in interface HostnameVerifierpublic 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 X509TrustManagerpublic static void restoreSSLCertificate()
public static void ignoreSSLCertificate()
Copyright © 2018. All Rights Reserved.