public class InsecureExtendedTrustManager extends X509ExtendedTrustManager
X509ExtendedTrustManager and X509TrustManager that will accept all server and client
certificates. Before accepting a certificate, the InsecureExtendedTrustManager uses the default X509ExtendedTrustManager
to determine if the certificate would otherwise be trusted, and logs a debug-level message if it is not trusted.| Modifier and Type | Field and Description |
|---|---|
protected static X509ExtendedTrustManager |
DEFAULT_EXTENDED_TRUST_MANAGER
The default extended trust manager, which will be used to determine if certificates would otherwise be trusted.
|
| Constructor and Description |
|---|
InsecureExtendedTrustManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s) |
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s,
Socket socket) |
void |
checkClientTrusted(X509Certificate[] x509Certificates,
String s,
SSLEngine sslEngine) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s,
Socket socket) |
void |
checkServerTrusted(X509Certificate[] x509Certificates,
String s,
SSLEngine sslEngine) |
X509Certificate[] |
getAcceptedIssuers() |
protected static final X509ExtendedTrustManager DEFAULT_EXTENDED_TRUST_MANAGER
public void checkClientTrusted(X509Certificate[] x509Certificates, String s, Socket socket) throws CertificateException
checkClientTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] x509Certificates, String s, Socket socket) throws CertificateException
checkServerTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkClientTrusted(X509Certificate[] x509Certificates, String s, SSLEngine sslEngine) throws CertificateException
checkClientTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkServerTrusted(X509Certificate[] x509Certificates, String s, SSLEngine sslEngine) throws CertificateException
checkServerTrusted in class X509ExtendedTrustManagerCertificateExceptionpublic void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
CertificateExceptionpublic void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException
CertificateExceptionpublic X509Certificate[] getAcceptedIssuers()
Copyright © 2017. All rights reserved.