Package io.vertx.core.net
Class JdkSSLEngineOptions
- java.lang.Object
-
- io.vertx.core.net.SSLEngineOptions
-
- io.vertx.core.net.JdkSSLEngineOptions
-
public class JdkSSLEngineOptions extends SSLEngineOptions
Configures aTCPSSLOptions
to use the JDK ssl engine implementation.- Author:
- Julien Viet
-
-
Field Summary
-
Fields inherited from class io.vertx.core.net.SSLEngineOptions
DEFAULT_USE_WORKER_POOL
-
-
Constructor Summary
Constructors Constructor Description JdkSSLEngineOptions()
JdkSSLEngineOptions(JsonObject json)
JdkSSLEngineOptions(JdkSSLEngineOptions that)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JdkSSLEngineOptions
copy()
static boolean
isAlpnAvailable()
JdkSSLEngineOptions
setUseWorkerThread(boolean useWorkerThread)
Set the thread pool to use for SSL blocking operations.SslContextFactory
sslContextFactory()
JsonObject
toJson()
-
Methods inherited from class io.vertx.core.net.SSLEngineOptions
getUseWorkerThread
-
-
-
-
Constructor Detail
-
JdkSSLEngineOptions
public JdkSSLEngineOptions()
-
JdkSSLEngineOptions
public JdkSSLEngineOptions(JsonObject json)
-
JdkSSLEngineOptions
public JdkSSLEngineOptions(JdkSSLEngineOptions that)
-
-
Method Detail
-
isAlpnAvailable
public static boolean isAlpnAvailable()
- Returns:
- if alpn support is available via the JDK SSL engine
-
setUseWorkerThread
public JdkSSLEngineOptions setUseWorkerThread(boolean useWorkerThread)
Description copied from class:SSLEngineOptions
Set the thread pool to use for SSL blocking operations.- Overrides:
setUseWorkerThread
in classSSLEngineOptions
- Parameters:
useWorkerThread
- whether to use the vertx internal worker pool for SSL blocking operations- Returns:
- a reference to this, so the API can be used fluently
-
toJson
public JsonObject toJson()
-
copy
public JdkSSLEngineOptions copy()
- Specified by:
copy
in classSSLEngineOptions
-
sslContextFactory
public SslContextFactory sslContextFactory()
- Specified by:
sslContextFactory
in classSSLEngineOptions
- Returns:
- a
SslContextFactory
that will be used to produce the NettySslContext
-
-