Skip to content

Commit

Permalink
Reformatted option
Browse files Browse the repository at this point in the history
  • Loading branch information
Hakky54 committed Nov 26, 2024
1 parent ac049b9 commit fc94fab
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ class FinagleHttpClientConfiguration {

if (uri.getScheme == "https") {
val sslClientConfiguration = SslClientConfiguration(
keyCredentials = OptionConverters.toScala(sslFactory.getKeyManagerFactory).map(kmf => KeyCredentials.KeyManagerFactory(kmf)).getOrElse(KeyCredentials.Unspecified),
trustCredentials = OptionConverters.toScala(sslFactory.getTrustManagerFactory).map(tmf => TrustCredentials.TrustManagerFactory(tmf)).getOrElse(TrustCredentials.Unspecified)
keyCredentials = OptionConverters.toScala(sslFactory.getKeyManagerFactory)
.map(kmf => KeyCredentials.KeyManagerFactory(kmf))
.getOrElse(KeyCredentials.Unspecified),
trustCredentials = OptionConverters.toScala(sslFactory.getTrustManagerFactory)
.map(tmf => TrustCredentials.TrustManagerFactory(tmf))
.getOrElse(TrustCredentials.Unspecified)
)

client = client.withTransport.tls(sslClientConfiguration)
Expand Down

0 comments on commit fc94fab

Please sign in to comment.