Class OpenSslContextOption<T>

    • Field Detail

      • USE_TASKS

        public static final OpenSslContextOption<java.lang.Boolean> USE_TASKS
        If enabled heavy-operations may be offloaded from the EventLoop if 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 of SslHandshakeCompletionEvents may be different compared when, not enabled. This is currently only supported when BoringSSL and ALPN is used.
      • CERTIFICATE_COMPRESSION_ALGORITHMS

        public static final OpenSslContextOption<OpenSslCertificateCompressionConfig> CERTIFICATE_COMPRESSION_ALGORITHMS
        Set the OpenSslCertificateCompressionConfig to 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. If this option is not specified, zlib compression is enabled in both directions. An empty configuration disables it. The jdk.tls.client.disableExtensions and jdk.tls.server.disableExtensions system properties disable the default for the corresponding side when they contain compress_certificate. An explicitly configured option takes precedence over these system properties. This is currently only supported when BoringSSL or AWS-LC is 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. Positive values below 16 KiB are treated as 16 KiB.
      • 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, and 4096.

        See SSL_CTX_set_tmp_dh_callback.

      • 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 BoringSSL or AWS-LC is used.

    • Constructor Detail

      • OpenSslContextOption

        private OpenSslContextOption​(java.lang.String name)