Interface SslProfile


public interface SslProfile
An SSL Profile is a runtime implementation of a SslConfiguration. It provides access to various SSL related objects that are automatically configured according to the associated SslConfiguration.
  • Method Details

    • configuration

      SslConfiguration configuration()
    • sslContext

      SSLContext sslContext()
    • socketFactory

      SSLSocketFactory socketFactory()
      Create a new SSLSocketFactory based on the provided configuration. The socket factory will also properly configure the ciphers and protocols on each socket that is created
      Returns:
      Never null.
    • hostnameVerifier

      HostnameVerifier hostnameVerifier()
    • connectionSocketFactory

      org.apache.http.conn.ssl.SSLConnectionSocketFactory connectionSocketFactory()
    • ioSessionStrategy

      org.apache.http.nio.conn.ssl.SSLIOSessionStrategy ioSessionStrategy()
      Returns:
      An object that is useful for configuring Apache Http Client v4.x
    • clientTlsStrategy

      org.apache.hc.core5.http.nio.ssl.TlsStrategy clientTlsStrategy()
      Returns:
      An object that is useful for configuring Apache Http Client v5.x
    • engine

      SSLEngine engine(String host, int port)
    • addReloadListener

      void addReloadListener(Consumer<SslProfile> listener)
      Add a listener that is called when this profile is reloaded (for example, because one of the configuration's dependent files is modified.