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 Summary
Modifier and TypeMethodDescriptionvoidaddReloadListener(Consumer<SslProfile> listener) Add a listener that is called when this profile is reloaded (for example, because one of theconfiguration'sdependent filesis modified.org.apache.hc.core5.http.nio.ssl.TlsStrategyorg.apache.http.conn.ssl.SSLConnectionSocketFactoryorg.apache.http.nio.conn.ssl.SSLIOSessionStrategyCreate a newSSLSocketFactorybased on the provided configuration.
-
Method Details
-
configuration
SslConfiguration configuration() -
sslContext
SSLContext sslContext() -
socketFactory
SSLSocketFactory socketFactory()Create a newSSLSocketFactorybased 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
-
addReloadListener
Add a listener that is called when this profile is reloaded (for example, because one of theconfiguration'sdependent filesis modified.
-