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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] x509Certificates, String s) voidcheckServerTrusted(X509Certificate[] x509Certificates, String s)
-
Constructor Details
-
DisableValidationTrustManager
public DisableValidationTrustManager()
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException - Specified by:
checkClientTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] x509Certificates, String s) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-