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
AX509TrustManagerthat does not validate SSL certificates.
-
-
Constructor Summary
Constructors Constructor Description DisableValidationTrustManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckClientTrusted(X509Certificate[] x509Certificates, String s)voidcheckServerTrusted(X509Certificate[] x509Certificates, String s)X509Certificate[]getAcceptedIssuers()
-
-
-
Method Detail
-
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
public X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-
-