Class CommonInternalServiceWebClientSslUtils
java.lang.Object
com.broadleafcommerce.common.extension.webclient.autoconfigure.CommonInternalServiceWebClientSslUtils
Utility class used to configure Reactor Netty HTTP clients and connectors for internal
service-to-service communication with SSL validation disabled.
- Since:
- MicroExtensionCommon 2.0.8
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.http.client.reactive.ClientHttpConnectorReturns a new NettyClientHttpConnectorwrapping a defaultHttpClientconfigured with disabled SSL verification.static org.springframework.http.client.reactive.ClientHttpConnectorgetDisabledSSLClientConnector(reactor.netty.http.client.HttpClient httpClient) Returns a NettyClientHttpConnectorwrapping the providedHttpClientconfigured with disabled SSL verification.
-
Constructor Details
-
CommonInternalServiceWebClientSslUtils
public CommonInternalServiceWebClientSslUtils()
-
-
Method Details
-
getDisabledSSLClientConnector
public static org.springframework.http.client.reactive.ClientHttpConnector getDisabledSSLClientConnector() throws SSLExceptionReturns a new NettyClientHttpConnectorwrapping a defaultHttpClientconfigured with disabled SSL verification.- Returns:
- a Netty ClientHttpConnector with SSL verification disabled
- Throws:
SSLException- if the SSL context cannot be initialized
-
getDisabledSSLClientConnector
public static org.springframework.http.client.reactive.ClientHttpConnector getDisabledSSLClientConnector(reactor.netty.http.client.HttpClient httpClient) throws SSLException Returns a NettyClientHttpConnectorwrapping the providedHttpClientconfigured with disabled SSL verification.- Parameters:
httpClient- the baseline HttpClient to secure- Returns:
- a Netty ClientHttpConnector with SSL verification disabled
- Throws:
SSLException- if the SSL context cannot be initialized
-