public interface SslEngineFactory
Modifier and Type | Method and 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 new
SSLEngine . |
SSLEngine newSslEngine(AsyncHttpClientConfig config, String peerHost, int peerPort)
SSLEngine
.config
- the client configpeerHost
- the peer hostnamepeerPort
- the peer portdefault void init(AsyncHttpClientConfig config) throws SSLException
newSslEngine
is called
for the first time.config
- the client configSSLException
- if initialization fails. If an exception is thrown, the instance will not be used as client
creation will fail.default void destroy()
Copyright © 2020. All rights reserved.