Package org.asynchttpclient
Interface SslEngineFactory
-
- All Known Implementing Classes:
DefaultSslEngineFactory
,JsseSslEngineFactory
,SslEngineFactoryBase
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SslEngineFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
destroy()
Perform any necessary cleanup.default void
init(AsyncHttpClientConfig config)
Perform any necessary one-time configuration.SSLEngine
newSslEngine(AsyncHttpClientConfig config, String peerHost, int peerPort)
Creates a newSSLEngine
.
-
-
-
Method Detail
-
newSslEngine
SSLEngine newSslEngine(AsyncHttpClientConfig config, String peerHost, int peerPort)
Creates a newSSLEngine
.- Parameters:
config
- the client configpeerHost
- the peer hostnamepeerPort
- the peer port- Returns:
- new engine
-
init
default void init(AsyncHttpClientConfig config) throws SSLException
Perform any necessary one-time configuration. This will be called just once beforenewSslEngine
is called for the first time.- Parameters:
config
- the client config- Throws:
SSLException
- if initialization fails. If an exception is thrown, the instance will not be used as client creation will fail.
-
destroy
default void destroy()
Perform any necessary cleanup.
-
-