public class InsecureExtendedTrustManager
extends javax.net.ssl.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 javax.net.ssl.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(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s) |
void |
checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
java.net.Socket socket) |
void |
checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
javax.net.ssl.SSLEngine sslEngine) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
java.net.Socket socket) |
void |
checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
javax.net.ssl.SSLEngine sslEngine) |
java.security.cert.X509Certificate[] |
getAcceptedIssuers() |
protected static final javax.net.ssl.X509ExtendedTrustManager DEFAULT_EXTENDED_TRUST_MANAGER
public void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
java.net.Socket socket)
throws java.security.cert.CertificateException
checkClientTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
java.net.Socket socket)
throws java.security.cert.CertificateException
checkServerTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
javax.net.ssl.SSLEngine sslEngine)
throws java.security.cert.CertificateException
checkClientTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s,
javax.net.ssl.SSLEngine sslEngine)
throws java.security.cert.CertificateException
checkServerTrusted in class javax.net.ssl.X509ExtendedTrustManagerjava.security.cert.CertificateExceptionpublic void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s)
throws java.security.cert.CertificateException
java.security.cert.CertificateExceptionpublic void checkServerTrusted(java.security.cert.X509Certificate[] x509Certificates,
java.lang.String s)
throws java.security.cert.CertificateException
java.security.cert.CertificateExceptionpublic java.security.cert.X509Certificate[] getAcceptedIssuers()