Interface WebClientSsl
public interface WebClientSsl
Interface that can be used to
apply
SSL configuration
to a WebClient.Builder
.
Typically used as follows:
@Bean public MyBean myBean(WebClient.Builder webClientBuilder, WebClientSsl ssl) { WebClient webClient = webClientBuilder.apply(ssl.fromBundle("mybundle")).build(); return new MyBean(webClient); }NOTE: Apply SSL configuration will replace any previously
configured
ClientHttpConnector
.- Since:
- 3.1.0
- Author:
- Phillip Webb
-
Method Summary
-
Method Details
-
fromBundle
- Parameters:
bundleName
- the name of the SSL bundle to apply- Returns:
- a
Consumer
to apply the configuration - Throws:
NoSuchSslBundleException
- if a bundle with the provided name does not exist
-
fromBundle
- Parameters:
bundle
- the SSL bundle to apply- Returns:
- a
Consumer
to apply the configuration
-