This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch CAMEL-27665-geocoder-proxy-digest in repository https://gitbox.apache.org/repos/asf/camel.git
commit 248f201f0ae300d5a3e88735270dee4a230aab74 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 16:24:39 2026 +0100 CAMEL-27665: camel-geocoder - proxyAuthMethod accepts only Basic google-maps-services answers the proxy only with Basic credentials, so proxyAuthMethod=Digest still sent the user name and password Base64 encoded in clear text. Any value other than Basic now fails when the producer starts with an IllegalArgumentException. The option lists Basic as its only enum value, AuthenticationMethod.Digest is deprecated, and the docs and the upgrade guide describe the change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../apache/camel/catalog/components/geocoder.json | 6 +- .../camel/catalog/docs/geocoder-component.adoc | 10 ++++ .../apache/camel/component/geocoder/geocoder.json | 6 +- .../src/main/docs/geocoder-component.adoc | 10 ++++ .../camel/component/geocoder/GeoCoderEndpoint.java | 24 ++++---- .../geocoder/http/AuthenticationMethod.java | 4 ++ .../geocoder/GeoCoderProxyAuthMethodTest.java | 68 ++++++++++++++++++++++ .../ROOT/pages/camel-4x-upgrade-guide-4_24.adoc | 9 +++ .../dsl/GeoCoderEndpointBuilderFactory.java | 12 ++-- 9 files changed, 126 insertions(+), 23 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/geocoder.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/geocoder.json index bc85c95804c3..abdbe31ca6d8 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/geocoder.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/geocoder.json @@ -53,9 +53,9 @@ "serverUrl": { "index": 4, "kind": "parameter", "displayName": "Server URL", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The base URL of the Nominatim server, such as https:\/\/nominatim.openstreetmap.org, to which the producer adds \/search or \/reverse. Required when type is NOMINATIM, and not used for Google." }, "type": { "index": 5, "kind": "parameter", "displayName": "GeoCoding Type", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.geocoder.GeoCoderType", "enum": [ "NOMINATIM", "GOOGLE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The geocoding service: GOOGLE for the Google Geocoding API, or NOMINATIM for the Nominatim server at serverUrl. If not set, Google is used." }, "lazyStartProducer": { "index": 6, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "proxyAuthDomain": { "index": 7, "kind": "parameter", "displayName": "Proxy Auth Domain", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic and Digest." }, - "proxyAuthHost": { "index": 8, "kind": "parameter", "displayName": "Proxy Auth Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic and Digest." }, - "proxyAuthMethod": { "index": 9, "kind": "parameter", "displayName": "Proxy Auth Method", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The authentication method for the proxy, Basic or Digest. When it is set, the producer authenticates to the proxy with proxyAuthUsername and proxyAuthPassword. Another value fails when the producer starts." }, + "proxyAuthDomain": { "index": 7, "kind": "parameter", "displayName": "Proxy Auth Domain", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic." }, + "proxyAuthHost": { "index": 8, "kind": "parameter", "displayName": "Proxy Auth Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic." }, + "proxyAuthMethod": { "index": 9, "kind": "parameter", "displayName": "Proxy Auth Method", "group": "proxy", "label": "proxy", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "Basic" ], "deprecated": false, "autowired": false, "secret": false, "description": "The authentication method for the proxy. Only Basic is supported: when it is set, the producer authenticates to the proxy with proxyAuthUsername and proxyAuthPassword, which are sent Base64 encoded in [...] "proxyAuthPassword": { "index": 10, "kind": "parameter", "displayName": "Proxy Auth Password", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password for the proxy authentication, used when proxyAuthMethod is set." }, "proxyAuthUsername": { "index": 11, "kind": "parameter", "displayName": "Proxy Auth Username", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The user name for the proxy authentication, used when proxyAuthMethod is set." }, "proxyHost": { "index": 12, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name of the HTTP proxy for the requests to Google. The proxy is used only when proxyPort is also set, and not for Nominatim." }, diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/geocoder-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/geocoder-component.adoc index 2cafaf03f88e..1d8b38515307 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/geocoder-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/geocoder-component.adoc @@ -69,6 +69,16 @@ If the option `headersOnly` is set to `true` then the message body is left as-is, and only headers will be added to the Exchange. +== Using a proxy + +The requests to Google can go through an HTTP proxy, set with `proxyHost` and `proxyPort`. The proxy is not used for +Nominatim. + +When the proxy needs authentication, set `proxyAuthMethod=Basic` with `proxyAuthUsername` and `proxyAuthPassword`. +Only Basic authentication is supported: the user name and password are sent Base64 encoded in the +`Proxy-Authorization` header, so use a proxy you reach over a network you trust. Another `proxyAuthMethod`, such as +`Digest`, fails when the producer starts. + == Examples In the example below, we get the latitude and longitude for Paris, France diff --git a/components/camel-geocoder/src/generated/resources/META-INF/org/apache/camel/component/geocoder/geocoder.json b/components/camel-geocoder/src/generated/resources/META-INF/org/apache/camel/component/geocoder/geocoder.json index bc85c95804c3..abdbe31ca6d8 100644 --- a/components/camel-geocoder/src/generated/resources/META-INF/org/apache/camel/component/geocoder/geocoder.json +++ b/components/camel-geocoder/src/generated/resources/META-INF/org/apache/camel/component/geocoder/geocoder.json @@ -53,9 +53,9 @@ "serverUrl": { "index": 4, "kind": "parameter", "displayName": "Server URL", "group": "producer", "label": "", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The base URL of the Nominatim server, such as https:\/\/nominatim.openstreetmap.org, to which the producer adds \/search or \/reverse. Required when type is NOMINATIM, and not used for Google." }, "type": { "index": 5, "kind": "parameter", "displayName": "GeoCoding Type", "group": "producer", "label": "", "required": false, "type": "enum", "javaType": "org.apache.camel.component.geocoder.GeoCoderType", "enum": [ "NOMINATIM", "GOOGLE" ], "deprecated": false, "autowired": false, "secret": false, "description": "The geocoding service: GOOGLE for the Google Geocoding API, or NOMINATIM for the Nominatim server at serverUrl. If not set, Google is used." }, "lazyStartProducer": { "index": 6, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "proxyAuthDomain": { "index": 7, "kind": "parameter", "displayName": "Proxy Auth Domain", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic and Digest." }, - "proxyAuthHost": { "index": 8, "kind": "parameter", "displayName": "Proxy Auth Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic and Digest." }, - "proxyAuthMethod": { "index": 9, "kind": "parameter", "displayName": "Proxy Auth Method", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The authentication method for the proxy, Basic or Digest. When it is set, the producer authenticates to the proxy with proxyAuthUsername and proxyAuthPassword. Another value fails when the producer starts." }, + "proxyAuthDomain": { "index": 7, "kind": "parameter", "displayName": "Proxy Auth Domain", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The domain for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic." }, + "proxyAuthHost": { "index": 8, "kind": "parameter", "displayName": "Proxy Auth Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host for NTLM proxy authentication. The component does not use this option, as proxyAuthMethod accepts only Basic." }, + "proxyAuthMethod": { "index": 9, "kind": "parameter", "displayName": "Proxy Auth Method", "group": "proxy", "label": "proxy", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "Basic" ], "deprecated": false, "autowired": false, "secret": false, "description": "The authentication method for the proxy. Only Basic is supported: when it is set, the producer authenticates to the proxy with proxyAuthUsername and proxyAuthPassword, which are sent Base64 encoded in [...] "proxyAuthPassword": { "index": 10, "kind": "parameter", "displayName": "Proxy Auth Password", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "description": "The password for the proxy authentication, used when proxyAuthMethod is set." }, "proxyAuthUsername": { "index": 11, "kind": "parameter", "displayName": "Proxy Auth Username", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The user name for the proxy authentication, used when proxyAuthMethod is set." }, "proxyHost": { "index": 12, "kind": "parameter", "displayName": "Proxy Host", "group": "proxy", "label": "proxy", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The host name of the HTTP proxy for the requests to Google. The proxy is used only when proxyPort is also set, and not for Nominatim." }, diff --git a/components/camel-geocoder/src/main/docs/geocoder-component.adoc b/components/camel-geocoder/src/main/docs/geocoder-component.adoc index 2cafaf03f88e..1d8b38515307 100644 --- a/components/camel-geocoder/src/main/docs/geocoder-component.adoc +++ b/components/camel-geocoder/src/main/docs/geocoder-component.adoc @@ -69,6 +69,16 @@ If the option `headersOnly` is set to `true` then the message body is left as-is, and only headers will be added to the Exchange. +== Using a proxy + +The requests to Google can go through an HTTP proxy, set with `proxyHost` and `proxyPort`. The proxy is not used for +Nominatim. + +When the proxy needs authentication, set `proxyAuthMethod=Basic` with `proxyAuthUsername` and `proxyAuthPassword`. +Only Basic authentication is supported: the user name and password are sent Base64 encoded in the +`Proxy-Authorization` header, so use a proxy you reach over a network you trust. Another `proxyAuthMethod`, such as +`Digest`, fails when the producer starts. + == Examples In the example below, we get the latitude and longitude for Paris, France diff --git a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderEndpoint.java b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderEndpoint.java index e1598d681538..5a0fd39a28b6 100644 --- a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderEndpoint.java +++ b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/GeoCoderEndpoint.java @@ -99,10 +99,11 @@ public class GeoCoderEndpoint extends DefaultEndpoint implements EndpointService description = "The port of the HTTP proxy for the requests to Google. The proxy is used only when proxyHost is" + " also set.") private Integer proxyPort; - @UriParam(label = "proxy", - description = "The authentication method for the proxy, Basic or Digest. When it is set, the producer" - + " authenticates to the proxy with proxyAuthUsername and proxyAuthPassword. Another value fails" - + " when the producer starts.") + @UriParam(label = "proxy", enums = "Basic", + description = "The authentication method for the proxy. Only Basic is supported: when it is set, the producer" + + " authenticates to the proxy with proxyAuthUsername and proxyAuthPassword, which are sent Base64" + + " encoded in the Proxy-Authorization header. Another value, such as Digest, fails when the" + + " producer starts.") private String proxyAuthMethod; @UriParam(label = "proxy", description = "The user name for the proxy authentication, used when proxyAuthMethod is set.") private String proxyAuthUsername; @@ -111,11 +112,11 @@ public class GeoCoderEndpoint extends DefaultEndpoint implements EndpointService private String proxyAuthPassword; @UriParam(label = "proxy", description = "The domain for NTLM proxy authentication. The component does not use this option, as" - + " proxyAuthMethod accepts only Basic and Digest.") + + " proxyAuthMethod accepts only Basic.") private String proxyAuthDomain; @UriParam(label = "proxy", description = "The host for NTLM proxy authentication. The component does not use this option, as" - + " proxyAuthMethod accepts only Basic and Digest.") + + " proxyAuthMethod accepts only Basic.") private String proxyAuthHost; @UriParam(displayName = "GeoCoding Type", description = "The geocoding service: GOOGLE for the Google Geocoding API, or NOMINATIM for the Nominatim" @@ -317,13 +318,12 @@ public class GeoCoderEndpoint extends DefaultEndpoint implements EndpointService } private GeoApiContext.Builder configureProxyAuth(GeoApiContext.Builder builder) { - AuthenticationMethod auth = getCamelContext().getTypeConverter().convertTo(AuthenticationMethod.class, proxyAuthMethod); - if (auth == AuthenticationMethod.Basic || auth == AuthenticationMethod.Digest) { - builder = builder.proxyAuthentication(proxyAuthUsername, proxyAuthPassword); - } else { - throw new IllegalArgumentException("Unknown proxyAuthMethod " + proxyAuthMethod); + // the Google client always answers the proxy with Basic credentials, so only Basic is accepted + if (!AuthenticationMethod.Basic.name().equalsIgnoreCase(proxyAuthMethod)) { + throw new IllegalArgumentException( + "Unsupported proxyAuthMethod " + proxyAuthMethod + ": only Basic proxy authentication is supported"); } - return builder; + return builder.proxyAuthentication(proxyAuthUsername, proxyAuthPassword); } private Proxy createProxy() { diff --git a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/http/AuthenticationMethod.java b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/http/AuthenticationMethod.java index cccfaa5b8c9b..1dd6b99b9a29 100644 --- a/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/http/AuthenticationMethod.java +++ b/components/camel-geocoder/src/main/java/org/apache/camel/component/geocoder/http/AuthenticationMethod.java @@ -22,5 +22,9 @@ package org.apache.camel.component.geocoder.http; public enum AuthenticationMethod { Basic, + /** + * Not supported: the proxyAuthMethod option accepts only Basic. + */ + @Deprecated Digest } diff --git a/components/camel-geocoder/src/test/java/org/apache/camel/component/geocoder/GeoCoderProxyAuthMethodTest.java b/components/camel-geocoder/src/test/java/org/apache/camel/component/geocoder/GeoCoderProxyAuthMethodTest.java new file mode 100644 index 000000000000..bcb44e4923e5 --- /dev/null +++ b/components/camel-geocoder/src/test/java/org/apache/camel/component/geocoder/GeoCoderProxyAuthMethodTest.java @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.component.geocoder; + +import org.apache.camel.CamelContext; +import org.apache.camel.builder.RouteBuilder; +import org.apache.camel.impl.DefaultCamelContext; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatThrownBy; + +/** + * The Google client authenticates to the proxy only with Basic, so another proxyAuthMethod fails at startup. The proxy + * is never contacted: the producer only builds its client when it starts. + */ +public class GeoCoderProxyAuthMethodTest { + + private static final String URI = "geocoder:address:Paris?apiKey=AIzaTest&proxyHost=127.0.0.1&proxyPort=0" + + "&proxyAuthUsername=scott&proxyAuthPassword=tiger&proxyAuthMethod="; + + @ParameterizedTest + @ValueSource(strings = { "Digest", "digest", "NTLM" }) + public void testUnsupportedProxyAuthMethodFailsAtStartup(String method) throws Exception { + try (CamelContext context = createContext(method)) { + assertThatThrownBy(context::start) + .rootCause() + .isInstanceOf(IllegalArgumentException.class) + .hasMessageContaining("Unsupported proxyAuthMethod " + method) + .hasMessageContaining("only Basic proxy authentication is supported"); + } + } + + @ParameterizedTest + @ValueSource(strings = { "Basic", "basic" }) + public void testBasicProxyAuthMethodStarts(String method) throws Exception { + try (CamelContext context = createContext(method)) { + context.start(); + assertThat(context.isStarted()).isTrue(); + } + } + + private static CamelContext createContext(String method) throws Exception { + CamelContext context = new DefaultCamelContext(); + context.addRoutes(new RouteBuilder() { + @Override + public void configure() { + from("direct:start").to(URI + method); + } + }); + return context; + } +} diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc index 25708c2cd51b..3c99269a0420 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_24.adoc @@ -12297,6 +12297,15 @@ With `allowUrlBody=true`, a body that does not start with `version: 1` and is no with a space or a relative name, now fails with an `InvalidPayloadException`, as a URL with an unknown scheme already did. Before, it failed with an `IllegalArgumentException`. A URL that cannot be fetched keeps its own exception. +=== camel-geocoder - proxyAuthMethod accepts only Basic + +The Google client of the `geocoder` producer authenticates to the proxy only with Basic authentication. Before, +`proxyAuthMethod=Digest` was accepted, but the producer still sent the user name and password as Basic credentials, +Base64 encoded in clear text in the `Proxy-Authorization` header. Now any `proxyAuthMethod` other than `Basic`, such as +`Digest`, fails when the producer starts with an `IllegalArgumentException`. Use `proxyAuthMethod=Basic` (over a +connection to the proxy you trust), or leave `proxyAuthMethod` out for a proxy without authentication. The constant +`AuthenticationMethod.Digest` is deprecated. + === Kamelets - removed Kamelets The Kamelet catalog (camel-kamelets 4.24) removes Kamelets that could not work on Camel 4.23 or 4.24: diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GeoCoderEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GeoCoderEndpointBuilderFactory.java index 58d766203831..6f21ba50e875 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GeoCoderEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GeoCoderEndpointBuilderFactory.java @@ -152,7 +152,7 @@ public interface GeoCoderEndpointBuilderFactory { } /** * The domain for NTLM proxy authentication. The component does not use - * this option, as proxyAuthMethod accepts only Basic and Digest. + * this option, as proxyAuthMethod accepts only Basic. * * The option is a: <code>java.lang.String</code> type. * @@ -167,7 +167,7 @@ public interface GeoCoderEndpointBuilderFactory { } /** * The host for NTLM proxy authentication. The component does not use - * this option, as proxyAuthMethod accepts only Basic and Digest. + * this option, as proxyAuthMethod accepts only Basic. * * The option is a: <code>java.lang.String</code> type. * @@ -181,9 +181,11 @@ public interface GeoCoderEndpointBuilderFactory { return this; } /** - * The authentication method for the proxy, Basic or Digest. When it is - * set, the producer authenticates to the proxy with proxyAuthUsername - * and proxyAuthPassword. Another value fails when the producer starts. + * The authentication method for the proxy. Only Basic is supported: + * when it is set, the producer authenticates to the proxy with + * proxyAuthUsername and proxyAuthPassword, which are sent Base64 + * encoded in the Proxy-Authorization header. Another value, such as + * Digest, fails when the producer starts. * * The option is a: <code>java.lang.String</code> type. *
