Interface HttpComponentsHttpClientBuilder.TlsSocketStrategyFactory

Enclosing class:
HttpComponentsHttpClientBuilder

public static interface HttpComponentsHttpClientBuilder.TlsSocketStrategyFactory
Factory that can be used to optionally create a TlsSocketStrategy given an SslBundle.
Since:
4.0.0
Author:
Phillip Webb, Andy Wilkinson, Scott Frederick
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable org.apache.hc.client5.http.ssl.TlsSocketStrategy
    getTlsSocketStrategy(@Nullable SslBundle sslBundle)
    Return the TlsSocketStrategy to use for the given bundle.
  • Method Details

    • getTlsSocketStrategy

      @Nullable org.apache.hc.client5.http.ssl.TlsSocketStrategy getTlsSocketStrategy(@Nullable SslBundle sslBundle)
      Return the TlsSocketStrategy to use for the given bundle.
      Parameters:
      sslBundle - the SSL bundle or null
      Returns:
      the TlsSocketStrategy to use or null