Add SSL bundle support to RestTemplateBuilder auto-configuration

Update RestTemplateBuilder auto-configuration so that an SSL can be
configured via an SSL bundle.

Closes gh-34810
This commit is contained in:
Scott Frederick
2023-03-30 16:32:57 -05:00
committed by Phillip Webb
parent fd5fd1491a
commit b6befd133c
7 changed files with 141 additions and 22 deletions

View File

@@ -13,8 +13,9 @@ The following code shows a typical example:
include::code:MyService[]
TIP: `RestTemplateBuilder` includes a number of useful methods that can be used to quickly configure a `RestTemplate`.
For example, to add BASIC auth support, you can use `builder.basicAuthentication("user", "password").build()`.
`RestTemplateBuilder` includes a number of useful methods that can be used to quickly configure a `RestTemplate`.
For example, to add BASIC authentication support, you can use `builder.basicAuthentication("user", "password").build()`.
To add SSL support using an <<features#features.ssl.bundles,SSL bundle>>, you can use `builder.setSslBundle(sslBundle).build()`.