Class SslUtils.TrustAllX509TrustManager
java.lang.Object
org.jmxtrans.embedded.util.net.ssl.SslUtils.TrustAllX509TrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
- Enclosing class:
- SslUtils
public static class SslUtils.TrustAllX509TrustManager extends Object implements X509TrustManager
Trust all
X509Certificate. Not for production use.-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger -
Constructor Summary
Constructors Constructor Description TrustAllX509TrustManager() -
Method Summary
Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] x509Certificates, String authType)voidcheckServerTrusted(X509Certificate[] x509Certificates, String authType)X509Certificate[]getAcceptedIssuers()
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
TrustAllX509TrustManager
public TrustAllX509TrustManager()
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String authType) throws CertificateException- Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates, String authType) throws CertificateException- Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-