Class OpenSSLEngineOptions
java.lang.Object
io.vertx.core.net.SSLEngineOptions
io.vertx.core.net.OpenSSLEngineOptions
Configures a
TCPSSLOptions to use OpenSsl.- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanDefault value of whether session cache is enabled in open SSL session server context = trueFields inherited from class SSLEngineOptions
DEFAULT_USE_WORKER_POOL -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncopy()static booleanstatic booleanbooleanWhether session cache is enabled in open SSL session server contextsetSessionCacheEnabled(boolean sessionCacheEnabled) Set whether session cache is enabled in open SSL session server contextsetUseWorkerThread(boolean useWorkerThread) Set the thread pool to use for SSL blocking operations.toJson()Methods inherited from class SSLEngineOptions
getUseWorkerThread
-
Field Details
-
DEFAULT_SESSION_CACHE_ENABLED
public static final boolean DEFAULT_SESSION_CACHE_ENABLEDDefault value of whether session cache is enabled in open SSL session server context = true- See Also:
-
-
Constructor Details
-
OpenSSLEngineOptions
public OpenSSLEngineOptions() -
OpenSSLEngineOptions
-
OpenSSLEngineOptions
-
-
Method Details
-
isAvailable
public static boolean isAvailable()- Returns:
- when OpenSSL is available
-
isAlpnAvailable
public static boolean isAlpnAvailable()- Returns:
- when alpn support is available via OpenSSL engine
-
setSessionCacheEnabled
Set whether session cache is enabled in open SSL session server context- Parameters:
sessionCacheEnabled- true if session cache is enabled- Returns:
- a reference to this, so the API can be used fluently
-
isSessionCacheEnabled
public boolean isSessionCacheEnabled()Whether session cache is enabled in open SSL session server context- Returns:
- true if session cache is enabled
-
setUseWorkerThread
Description copied from class:SSLEngineOptionsSet the thread pool to use for SSL blocking operations.- Overrides:
setUseWorkerThreadin 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
-
copy
- Specified by:
copyin classSSLEngineOptions
-
sslContextFactory
- Specified by:
sslContextFactoryin classSSLEngineOptions- Returns:
- a
SslContextFactorythat will be used to produce the NettySslContext
-