This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch camel-3.4.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 39ed07bf968085bd6de13ee5ebed80d900a10a31 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Mar 9 13:34:48 2021 +0100 CAMEL-16315 - Camel-Netty: Support Hostname verification even though we are on Netty 4.1.x --- .../org/apache/camel/component/netty/netty.json | 4 +- .../camel-netty/src/main/docs/netty-component.adoc | 4 +- .../camel/component/netty/NettyConfiguration.java | 2 +- .../dsl/NettyComponentBuilderFactory.java | 28 ++-- .../endpoint/dsl/NettyEndpointBuilderFactory.java | 156 ++++++++++----------- 5 files changed, 97 insertions(+), 97 deletions(-) diff --git a/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json b/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json index c8448b2..293759c 100644 --- a/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json +++ b/components/camel-netty/src/generated/resources/org/apache/camel/component/netty/netty.json @@ -23,7 +23,6 @@ "componentProperties": { "configuration": { "kind": "property", "displayName": "Configuration", "group": "common", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.netty.NettyConfiguration", "deprecated": false, "secret": false, "description": "To use the NettyConfiguration as configuration when creating endpoints." }, "disconnect": { "kind": "property", "displayName": "Disconnect", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Whether or not to disconnect(close) from Netty Channel right after use. Can be used for both consumer and producer." }, - "hostnameVerification": { "kind": "property", "displayName": "Hostname Verification", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "To enable\/disable hostname verification on SSLEngine" }, "keepAlive": { "kind": "property", "displayName": "Keep Alive", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Setting to ensure socket is not closed due to inactivity" }, "reuseAddress": { "kind": "property", "displayName": "Reuse Address", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Setting to facilitate socket multiplexing" }, "reuseChannel": { "kind": "property", "displayName": "Reuse Channel", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "This option allows producers and consumers (in client mode) to reuse the same Netty Channel for the lifecycle of processing th [...] @@ -81,6 +80,7 @@ "encoding": { "kind": "property", "displayName": "Encoding", "group": "codec", "label": "codec", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "The encoding (a charset name) to use for the textline codec. If not provided, Camel will use the JVM default Charset." }, "textline": { "kind": "property", "displayName": "Textline", "group": "codec", "label": "codec", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Only used for TCP. If no codec is specified, you can use this flag to indicate a text line based codec; if not specified or the value is [...] "enabledProtocols": { "kind": "property", "displayName": "Enabled Protocols", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "TLSv1,TLSv1.1,TLSv1.2", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Which protocols to enable when using SSL" }, + "hostnameVerification": { "kind": "property", "displayName": "Hostname Verification", "group": "security", "label": "common,security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "To enable\/disable hostname verification on SSLEngine" }, "keyStoreFile": { "kind": "property", "displayName": "Key Store File", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.io.File", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Client side certificate keystore to be used for encryption" }, "keyStoreFormat": { "kind": "property", "displayName": "Key Store Format", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Keystore format to be used for payload encryption. Defaults to JKS if not set" }, "keyStoreResource": { "kind": "property", "displayName": "Key Store Resource", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Client side certificate keystore to be used for encryption. Is loaded by default from classpath, but you can prefix with classpa [...] @@ -100,7 +100,6 @@ "host": { "kind": "path", "displayName": "Host", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "The hostname. For the consumer the hostname is localhost or 0.0.0.0. For the producer the hostname is the remote host to connect to" }, "port": { "kind": "path", "displayName": "Port", "group": "common", "label": "", "required": true, "type": "integer", "javaType": "int", "deprecated": false, "deprecationNote": "", "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "The host port number" }, "disconnect": { "kind": "parameter", "displayName": "Disconnect", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Whether or not to disconnect(close) from Netty Channel right after use. Can be used for both consumer and producer." }, - "hostnameVerification": { "kind": "parameter", "displayName": "Hostname Verification", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "To enable\/disable hostname verification on SSLEngine" }, "keepAlive": { "kind": "parameter", "displayName": "Keep Alive", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Setting to ensure socket is not closed due to inactivity" }, "reuseAddress": { "kind": "parameter", "displayName": "Reuse Address", "group": "common", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "true", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Setting to facilitate socket multiplexing" }, "reuseChannel": { "kind": "parameter", "displayName": "Reuse Channel", "group": "common", "label": "common", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "This option allows producers and consumers (in client mode) to reuse the same Netty Channel for the lifecycle of processing t [...] @@ -159,6 +158,7 @@ "encoding": { "kind": "parameter", "displayName": "Encoding", "group": "codec", "label": "codec", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "The encoding (a charset name) to use for the textline codec. If not provided, Camel will use the JVM default Charset." }, "textline": { "kind": "parameter", "displayName": "Textline", "group": "codec", "label": "codec", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Only used for TCP. If no codec is specified, you can use this flag to indicate a text line based codec; if not specified or the value is [...] "enabledProtocols": { "kind": "parameter", "displayName": "Enabled Protocols", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "defaultValue": "TLSv1,TLSv1.1,TLSv1.2", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Which protocols to enable when using SSL" }, + "hostnameVerification": { "kind": "parameter", "displayName": "Hostname Verification", "group": "security", "label": "common,security", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "secret": false, "defaultValue": "false", "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "To enable\/disable hostname verification on SSLEngine" }, "keyStoreFile": { "kind": "parameter", "displayName": "Key Store File", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.io.File", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Client side certificate keystore to be used for encryption" }, "keyStoreFormat": { "kind": "parameter", "displayName": "Key Store Format", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Keystore format to be used for payload encryption. Defaults to JKS if not set" }, "keyStoreResource": { "kind": "parameter", "displayName": "Key Store Resource", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "configurationClass": "org.apache.camel.component.netty.NettyConfiguration", "configurationField": "configuration", "description": "Client side certificate keystore to be used for encryption. Is loaded by default from classpath, but you can prefix with classp [...] diff --git a/components/camel-netty/src/main/docs/netty-component.adoc b/components/camel-netty/src/main/docs/netty-component.adoc index f3c1048..7de2891 100644 --- a/components/camel-netty/src/main/docs/netty-component.adoc +++ b/components/camel-netty/src/main/docs/netty-component.adoc @@ -67,7 +67,6 @@ The Netty component supports 73 options, which are listed below. | Name | Description | Default | Type | *configuration* (common) | To use the NettyConfiguration as configuration when creating endpoints. | | NettyConfiguration | *disconnect* (common) | Whether or not to disconnect(close) from Netty Channel right after use. Can be used for both consumer and producer. | false | boolean -| *hostnameVerification* (common) | To enable/disable hostname verification on SSLEngine | false | boolean | *keepAlive* (common) | Setting to ensure socket is not closed due to inactivity | true | boolean | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | boolean | *reuseChannel* (common) | This option allows producers and consumers (in client mode) to reuse the same Netty Channel for the lifecycle of processing the Exchange. This is useful if you need to call a server multiple times in a Camel route and want to use the same network connection. When using this, the channel is not returned to the connection pool until the Exchange is done; or disconnected if the disconnect option is set to true. The reused Channel is stored on the Exchange as an e [...] @@ -125,6 +124,7 @@ The Netty component supports 73 options, which are listed below. | *encoding* (codec) | The encoding (a charset name) to use for the textline codec. If not provided, Camel will use the JVM default Charset. | | String | *textline* (codec) | Only used for TCP. If no codec is specified, you can use this flag to indicate a text line based codec; if not specified or the value is false, then Object Serialization is assumed over TCP - however only Strings are allowed to be serialized by default. | false | boolean | *enabledProtocols* (security) | Which protocols to enable when using SSL | TLSv1,TLSv1.1,TLSv1.2 | String +| *hostnameVerification* (security) | To enable/disable hostname verification on SSLEngine | false | boolean | *keyStoreFile* (security) | Client side certificate keystore to be used for encryption | | File | *keyStoreFormat* (security) | Keystore format to be used for payload encryption. Defaults to JKS if not set | | String | *keyStoreResource* (security) | Client side certificate keystore to be used for encryption. Is loaded by default from classpath, but you can prefix with classpath:, file:, or http: to load the resource from different systems. | | String @@ -170,7 +170,6 @@ with the following path and query parameters: |=== | Name | Description | Default | Type | *disconnect* (common) | Whether or not to disconnect(close) from Netty Channel right after use. Can be used for both consumer and producer. | false | boolean -| *hostnameVerification* (common) | To enable/disable hostname verification on SSLEngine | false | boolean | *keepAlive* (common) | Setting to ensure socket is not closed due to inactivity | true | boolean | *reuseAddress* (common) | Setting to facilitate socket multiplexing | true | boolean | *reuseChannel* (common) | This option allows producers and consumers (in client mode) to reuse the same Netty Channel for the lifecycle of processing the Exchange. This is useful if you need to call a server multiple times in a Camel route and want to use the same network connection. When using this, the channel is not returned to the connection pool until the Exchange is done; or disconnected if the disconnect option is set to true. The reused Channel is stored on the Exchange as an e [...] @@ -229,6 +228,7 @@ with the following path and query parameters: | *encoding* (codec) | The encoding (a charset name) to use for the textline codec. If not provided, Camel will use the JVM default Charset. | | String | *textline* (codec) | Only used for TCP. If no codec is specified, you can use this flag to indicate a text line based codec; if not specified or the value is false, then Object Serialization is assumed over TCP - however only Strings are allowed to be serialized by default. | false | boolean | *enabledProtocols* (security) | Which protocols to enable when using SSL | TLSv1,TLSv1.1,TLSv1.2 | String +| *hostnameVerification* (security) | To enable/disable hostname verification on SSLEngine | false | boolean | *keyStoreFile* (security) | Client side certificate keystore to be used for encryption | | File | *keyStoreFormat* (security) | Keystore format to be used for payload encryption. Defaults to JKS if not set | | String | *keyStoreResource* (security) | Client side certificate keystore to be used for encryption. Is loaded by default from classpath, but you can prefix with classpath:, file:, or http: to load the resource from different systems. | | String diff --git a/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConfiguration.java b/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConfiguration.java index 93abf58..b5ff8a0 100644 --- a/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConfiguration.java +++ b/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConfiguration.java @@ -65,7 +65,7 @@ public class NettyConfiguration extends NettyServerBootstrapConfiguration implem private List<ChannelHandler> encoders = new ArrayList<>(); @UriParam(label = "codec") private List<ChannelHandler> decoders = new ArrayList<>(); - @UriParam(label = "common", defaultValue = "false") + @UriParam(label = "common,security", defaultValue = "false") private boolean hostnameVerification; @UriParam private boolean disconnect; diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java index a53c5d4..6becd94 100644 --- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java +++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/NettyComponentBuilderFactory.java @@ -75,19 +75,6 @@ public interface NettyComponentBuilderFactory { return this; } /** - * To enable/disable hostname verification on SSLEngine. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: common - */ - default NettyComponentBuilder hostnameVerification( - boolean hostnameVerification) { - doSetProperty("hostnameVerification", hostnameVerification); - return this; - } - /** * Setting to ensure socket is not closed due to inactivity. * * The option is a: <code>boolean</code> type. @@ -922,6 +909,19 @@ public interface NettyComponentBuilderFactory { return this; } /** + * To enable/disable hostname verification on SSLEngine. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: security + */ + default NettyComponentBuilder hostnameVerification( + boolean hostnameVerification) { + doSetProperty("hostnameVerification", hostnameVerification); + return this; + } + /** * Client side certificate keystore to be used for encryption. * * The option is a: <code>java.io.File</code> type. @@ -1115,7 +1115,6 @@ public interface NettyComponentBuilderFactory { switch (name) { case "configuration": ((NettyComponent) component).setConfiguration((org.apache.camel.component.netty.NettyConfiguration) value); return true; case "disconnect": getOrCreateConfiguration((NettyComponent) component).setDisconnect((boolean) value); return true; - case "hostnameVerification": getOrCreateConfiguration((NettyComponent) component).setHostnameVerification((boolean) value); return true; case "keepAlive": getOrCreateConfiguration((NettyComponent) component).setKeepAlive((boolean) value); return true; case "reuseAddress": getOrCreateConfiguration((NettyComponent) component).setReuseAddress((boolean) value); return true; case "reuseChannel": getOrCreateConfiguration((NettyComponent) component).setReuseChannel((boolean) value); return true; @@ -1173,6 +1172,7 @@ public interface NettyComponentBuilderFactory { case "encoding": getOrCreateConfiguration((NettyComponent) component).setEncoding((java.lang.String) value); return true; case "textline": getOrCreateConfiguration((NettyComponent) component).setTextline((boolean) value); return true; case "enabledProtocols": getOrCreateConfiguration((NettyComponent) component).setEnabledProtocols((java.lang.String) value); return true; + case "hostnameVerification": getOrCreateConfiguration((NettyComponent) component).setHostnameVerification((boolean) value); return true; case "keyStoreFile": getOrCreateConfiguration((NettyComponent) component).setKeyStoreFile((java.io.File) value); return true; case "keyStoreFormat": getOrCreateConfiguration((NettyComponent) component).setKeyStoreFormat((java.lang.String) value); return true; case "keyStoreResource": getOrCreateConfiguration((NettyComponent) component).setKeyStoreResource((java.lang.String) value); return true; diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java index 68f7334..fd04a44 100644 --- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java +++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NettyEndpointBuilderFactory.java @@ -72,32 +72,6 @@ public interface NettyEndpointBuilderFactory { return this; } /** - * To enable/disable hostname verification on SSLEngine. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: common - */ - default NettyEndpointConsumerBuilder hostnameVerification( - boolean hostnameVerification) { - doSetProperty("hostnameVerification", hostnameVerification); - return this; - } - /** - * To enable/disable hostname verification on SSLEngine. - * - * The option will be converted to a <code>boolean</code> type. - * - * Default: false - * Group: common - */ - default NettyEndpointConsumerBuilder hostnameVerification( - String hostnameVerification) { - doSetProperty("hostnameVerification", hostnameVerification); - return this; - } - /** * Setting to ensure socket is not closed due to inactivity. * * The option is a: <code>boolean</code> type. @@ -610,6 +584,32 @@ public interface NettyEndpointBuilderFactory { return this; } /** + * To enable/disable hostname verification on SSLEngine. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: security + */ + default NettyEndpointConsumerBuilder hostnameVerification( + boolean hostnameVerification) { + doSetProperty("hostnameVerification", hostnameVerification); + return this; + } + /** + * To enable/disable hostname verification on SSLEngine. + * + * The option will be converted to a <code>boolean</code> type. + * + * Default: false + * Group: security + */ + default NettyEndpointConsumerBuilder hostnameVerification( + String hostnameVerification) { + doSetProperty("hostnameVerification", hostnameVerification); + return this; + } + /** * Client side certificate keystore to be used for encryption. * * The option is a: <code>java.io.File</code> type. @@ -1648,32 +1648,6 @@ public interface NettyEndpointBuilderFactory { return this; } /** - * To enable/disable hostname verification on SSLEngine. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: common - */ - default NettyEndpointProducerBuilder hostnameVerification( - boolean hostnameVerification) { - doSetProperty("hostnameVerification", hostnameVerification); - return this; - } - /** - * To enable/disable hostname verification on SSLEngine. - * - * The option will be converted to a <code>boolean</code> type. - * - * Default: false - * Group: common - */ - default NettyEndpointProducerBuilder hostnameVerification( - String hostnameVerification) { - doSetProperty("hostnameVerification", hostnameVerification); - return this; - } - /** * Setting to ensure socket is not closed due to inactivity. * * The option is a: <code>boolean</code> type. @@ -2142,6 +2116,32 @@ public interface NettyEndpointBuilderFactory { return this; } /** + * To enable/disable hostname verification on SSLEngine. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: security + */ + default NettyEndpointProducerBuilder hostnameVerification( + boolean hostnameVerification) { + doSetProperty("hostnameVerification", hostnameVerification); + return this; + } + /** + * To enable/disable hostname verification on SSLEngine. + * + * The option will be converted to a <code>boolean</code> type. + * + * Default: false + * Group: security + */ + default NettyEndpointProducerBuilder hostnameVerification( + String hostnameVerification) { + doSetProperty("hostnameVerification", hostnameVerification); + return this; + } + /** * Client side certificate keystore to be used for encryption. * * The option is a: <code>java.io.File</code> type. @@ -3119,32 +3119,6 @@ public interface NettyEndpointBuilderFactory { return this; } /** - * To enable/disable hostname verification on SSLEngine. - * - * The option is a: <code>boolean</code> type. - * - * Default: false - * Group: common - */ - default NettyEndpointBuilder hostnameVerification( - boolean hostnameVerification) { - doSetProperty("hostnameVerification", hostnameVerification); - return this; - } - /** - * To enable/disable hostname verification on SSLEngine. - * - * The option will be converted to a <code>boolean</code> type. - * - * Default: false - * Group: common - */ - default NettyEndpointBuilder hostnameVerification( - String hostnameVerification) { - doSetProperty("hostnameVerification", hostnameVerification); - return this; - } - /** * Setting to ensure socket is not closed due to inactivity. * * The option is a: <code>boolean</code> type. @@ -3511,6 +3485,32 @@ public interface NettyEndpointBuilderFactory { return this; } /** + * To enable/disable hostname verification on SSLEngine. + * + * The option is a: <code>boolean</code> type. + * + * Default: false + * Group: security + */ + default NettyEndpointBuilder hostnameVerification( + boolean hostnameVerification) { + doSetProperty("hostnameVerification", hostnameVerification); + return this; + } + /** + * To enable/disable hostname verification on SSLEngine. + * + * The option will be converted to a <code>boolean</code> type. + * + * Default: false + * Group: security + */ + default NettyEndpointBuilder hostnameVerification( + String hostnameVerification) { + doSetProperty("hostnameVerification", hostnameVerification); + return this; + } + /** * Client side certificate keystore to be used for encryption. * * The option is a: <code>java.io.File</code> type.