You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/03/07 21:02:49 UTC
[camel] 02/03: CAMEL-15520: fixed deprecations in camel-jetty-common
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
commit de3f0c5b12b57434dcddcf79acc660029d0d5f93
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Mon Mar 7 15:40:03 2022 +0100
CAMEL-15520: fixed deprecations in camel-jetty-common
---
.../java/org/apache/camel/component/jetty/JettyHttpComponent.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
index a3cd4e3..b51044c 100644
--- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
+++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
@@ -638,9 +638,11 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
private SslContextFactory createSslContextFactory(SSLContextParameters ssl, boolean client)
throws GeneralSecurityException, IOException {
- SslContextFactory answer = new SslContextFactory();
+ SslContextFactory answer;
if (!client) {
- answer.setEndpointIdentificationAlgorithm(null);
+ answer = new SslContextFactory.Server();
+ } else {
+ answer = new SslContextFactory.Client();
}
if (ssl != null) {
answer.setSslContext(ssl.createSSLContext(getCamelContext()));