public interface SslEngineFactory
Modifier and Type | Method and Description |
---|---|
default void |
init(AsyncHttpClientConfig config)
Perform any necessary one-time configuration.
|
javax.net.ssl.SSLEngine |
newSslEngine(AsyncHttpClientConfig config,
java.lang.String peerHost,
int peerPort)
Creates new
SSLEngine . |
javax.net.ssl.SSLEngine newSslEngine(AsyncHttpClientConfig config, java.lang.String peerHost, int peerPort)
SSLEngine
.config
- the client configpeerHost
- the peer hostnamepeerPort
- the peer portdefault void init(AsyncHttpClientConfig config) throws javax.net.ssl.SSLException
newSslEngine
is called
for the first time.config
- the client configjavax.net.ssl.SSLException
- if initialization fails. If an exception is thrown, the instance will not be used as client
creation will fail.Copyright © 2018. All Rights Reserved.