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 SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddestroy()Perform any necessary cleanup.default voidinit(AsyncHttpClientConfig config)Perform any necessary one-time configuration.SSLEnginenewSslEngine(AsyncHttpClientConfig config, String peerHost, int peerPort)Creates a newSSLEngine.
 
- 
- 
- 
Method Detail- 
newSslEngineSSLEngine newSslEngine(AsyncHttpClientConfig config, String peerHost, int peerPort) Creates a newSSLEngine.- Parameters:
- config- the client config
- peerHost- the peer hostname
- peerPort- the peer port
- Returns:
- new engine
 
 - 
initdefault void init(AsyncHttpClientConfig config) throws SSLException Perform any necessary one-time configuration. This will be called just once beforenewSslEngineis 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.
 
 - 
destroydefault void destroy() Perform any necessary cleanup.
 
- 
 
-