public class OpenSSLEngineOptions extends SSLEngineOptions
TCPSSLOptions
to use OpenSsl.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_SESSION_CACHE_ENABLED
Default value of whether session cache is enabled in open SSL session server context = true
|
DEFAULT_USE_WORKER_POOL
Constructor and Description |
---|
OpenSSLEngineOptions() |
OpenSSLEngineOptions(JsonObject json) |
OpenSSLEngineOptions(OpenSSLEngineOptions other) |
Modifier and Type | Method and Description |
---|---|
OpenSSLEngineOptions |
copy() |
static boolean |
isAlpnAvailable() |
static boolean |
isAvailable() |
boolean |
isSessionCacheEnabled()
Whether session cache is enabled in open SSL session server context
|
OpenSSLEngineOptions |
setSessionCacheEnabled(boolean sessionCacheEnabled)
Set whether session cache is enabled in open SSL session server context
|
OpenSSLEngineOptions |
setUseWorkerThread(boolean useWorkerThread)
Set the thread pool to use for SSL blocking operations.
|
SslContextFactory |
sslContextFactory() |
JsonObject |
toJson() |
getUseWorkerThread
public static final boolean DEFAULT_SESSION_CACHE_ENABLED
public OpenSSLEngineOptions()
public OpenSSLEngineOptions(JsonObject json)
public OpenSSLEngineOptions(OpenSSLEngineOptions other)
public static boolean isAvailable()
public static boolean isAlpnAvailable()
public OpenSSLEngineOptions setSessionCacheEnabled(boolean sessionCacheEnabled)
sessionCacheEnabled
- true if session cache is enabledpublic boolean isSessionCacheEnabled()
public OpenSSLEngineOptions setUseWorkerThread(boolean useWorkerThread)
SSLEngineOptions
setUseWorkerThread
in class SSLEngineOptions
useWorkerThread
- whether to use the vertx internal worker pool for SSL blocking operationspublic JsonObject toJson()
public OpenSSLEngineOptions copy()
copy
in class SSLEngineOptions
public SslContextFactory sslContextFactory()
sslContextFactory
in class SSLEngineOptions
SslContextFactory
that will be used to produce the Netty SslContext
Copyright © 2024 Eclipse. All rights reserved.