Class OkHttpClientFactory.DisableValidationTrustManager
java.lang.Object
org.springframework.cloud.commons.httpclient.OkHttpClientFactory.DisableValidationTrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
- Enclosing interface:
- OkHttpClientFactory
public static class OkHttpClientFactory.DisableValidationTrustManager
extends Object
implements X509TrustManager
A
X509TrustManager
that does not validate SSL certificates.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] x509Certificates, String s) void
checkServerTrusted
(X509Certificate[] x509Certificates, String s)
-
Constructor Details
-
DisableValidationTrustManager
public DisableValidationTrustManager()
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException - Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException - Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-