Package io.netty.handler.ssl
Class OpenSslContextOption<T>
- java.lang.Object
-
- io.netty.util.AbstractConstant<SslContextOption<T>>
-
- io.netty.handler.ssl.SslContextOption<T>
-
- io.netty.handler.ssl.OpenSslContextOption<T>
-
- Type Parameters:
T- the type of the value.
- All Implemented Interfaces:
Constant<SslContextOption<T>>,java.lang.Comparable<SslContextOption<T>>
public final class OpenSslContextOption<T> extends SslContextOption<T>
-
-
Field Summary
Fields Modifier and Type Field Description static OpenSslContextOption<OpenSslAsyncPrivateKeyMethod>ASYNC_PRIVATE_KEY_METHODSet theOpenSslAsyncPrivateKeyMethodto use.static OpenSslContextOption<OpenSslCertificateCompressionConfig>CERTIFICATE_COMPRESSION_ALGORITHMSSet theOpenSslCertificateCompressionConfigto use.static OpenSslContextOption<java.lang.String[]>GROUPSSet the groups that should be used.static OpenSslContextOption<java.lang.Integer>MAX_CERTIFICATE_LIST_BYTESSet the maximum number of bytes that is allowed during the handshake for certificate chain.static OpenSslContextOption<OpenSslPrivateKeyMethod>PRIVATE_KEY_METHODSet theOpenSslPrivateKeyMethodto use.static OpenSslContextOption<java.lang.Boolean>TLS_FALSE_STARTIf enabled TLS false start will be enabled if supported.static OpenSslContextOption<java.lang.Integer>TMP_DH_KEYLENGTHSet the desired length of the Diffie-Hellman ephemeral session keys.static OpenSslContextOption<java.lang.Boolean>USE_JDK_PROVIDER_SIGNATURESSet the policy for handling alternative key providers (such as hardware security keys, smart cards, remote signing services, etc.) when using BoringSSL.static OpenSslContextOption<java.lang.Boolean>USE_TASKSIf enabled heavy-operations may be offloaded from theEventLoopif possible.
-
-
-
Field Detail
-
USE_TASKS
public static final OpenSslContextOption<java.lang.Boolean> USE_TASKS
If enabled heavy-operations may be offloaded from theEventLoopif possible.
-
TLS_FALSE_START
public static final OpenSslContextOption<java.lang.Boolean> TLS_FALSE_START
If enabled TLS false start will be enabled if supported. When TLS false start is enabled the flow ofSslHandshakeCompletionEvents may be different compared when, not enabled. This is currently only supported whenBoringSSLand ALPN is used.
-
PRIVATE_KEY_METHOD
public static final OpenSslContextOption<OpenSslPrivateKeyMethod> PRIVATE_KEY_METHOD
Set theOpenSslPrivateKeyMethodto use. This allows to offload private-key operations if needed. This is currently only supported whenBoringSSLis used.
-
ASYNC_PRIVATE_KEY_METHOD
public static final OpenSslContextOption<OpenSslAsyncPrivateKeyMethod> ASYNC_PRIVATE_KEY_METHOD
Set theOpenSslAsyncPrivateKeyMethodto use. This allows to offload private-key operations if needed. This is currently only supported whenBoringSSLis used.
-
CERTIFICATE_COMPRESSION_ALGORITHMS
public static final OpenSslContextOption<OpenSslCertificateCompressionConfig> CERTIFICATE_COMPRESSION_ALGORITHMS
Set theOpenSslCertificateCompressionConfigto use. This allows for the configuration of certificate compression algorithms which should be used, the priority of those algorithms and the directions in which they should be used. This is currently only supported whenBoringSSLis used.
-
MAX_CERTIFICATE_LIST_BYTES
public static final OpenSslContextOption<java.lang.Integer> MAX_CERTIFICATE_LIST_BYTES
Set the maximum number of bytes that is allowed during the handshake for certificate chain.
-
GROUPS
public static final OpenSslContextOption<java.lang.String[]> GROUPS
Set the groups that should be used. This will override curves set with-Djdk.tls.namedGroups.
-
TMP_DH_KEYLENGTH
public static final OpenSslContextOption<java.lang.Integer> TMP_DH_KEYLENGTH
Set the desired length of the Diffie-Hellman ephemeral session keys. This will override the key length set with-Djdk.tls.ephemeralDHKeySize.The only supported values are
512,1024,2048, and4096.
-
USE_JDK_PROVIDER_SIGNATURES
public static final OpenSslContextOption<java.lang.Boolean> USE_JDK_PROVIDER_SIGNATURES
Set the policy for handling alternative key providers (such as hardware security keys, smart cards, remote signing services, etc.) when using BoringSSL.Note: this feature only works when
BoringSSLorAWS-LCis used.
-
-