Ayush0612005 opened a new pull request, #31220:
URL: https://github.com/apache/camel/pull/31220

   # Description
   
   [CAMEL-28012](https://issues.apache.org/jira/browse/CAMEL-28012): follow-up 
of #31066 ([CAMEL-25650](https://issues.apache.org/jira/browse/CAMEL-25650)), 
which added `endpointIdentificationAlgorithm` to `SSLContextClientParameters` 
in the Java API. This makes it configurable in the two places discussed in its 
review:
   
   - **Camel Main**: `camel.ssl.endpointIdentificationAlgorithm` (and 
`withEndpointIdentificationAlgorithm` on `SSLConfigurationProperties`). When it 
is set, the global SSL configuration gets client parameters with the algorithm. 
When it is not set, no client parameters are created, so the default 
configuration is built as before.
   - **Spring XML**: an `endpointIdentificationAlgorithm` attribute on 
`<clientParameters>`, set on the client parameters by 
`AbstractSSLContextClientParametersFactoryBean`.
   
   Docs: the generated main options (`main.adoc`, metadata and their catalog 
copies), the `camel-spring.xsd` schema in the catalog, and the 
`SSLContextClientParameters` section of `camel-configuration-utilities.adoc`, 
which now lists the option as an attribute and mentions the `camel.ssl` option.
   
   # Tests
   
   - `MainSSLTest`: the option set as a property and with the fluent API 
creates client parameters with the algorithm and the Camel context; the 
existing test now also checks that the default creates no client parameters. 
The camel-main SSL tests pass (20).
   - `SSLContextParametersFactoryBeanTest`: the attribute in the Spring XML 
context reaches the client parameters.
   
   With the line that sets the client parameters in `BaseMainSupport`, or the 
one that sets the algorithm in the factory bean, removed, the new checks fail.
   
   # Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   # Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   # Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I built camel-core-xml, camel-main and camel-spring-xml with `install` 
(including `formatter:format` and `impsort:sort`).
   
   _Claude Code on behalf of Ayush0612005_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to