You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2022/09/15 01:52:38 UTC

[pulsar] branch branch-2.11 updated: Add a constructor method for NettyServerSslContextBuilder. (#17649)

This is an automated email from the ASF dual-hosted git repository.

technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.11 by this push:
     new 50e70c2ffa0 Add a constructor method for NettyServerSslContextBuilder. (#17649)
50e70c2ffa0 is described below

commit 50e70c2ffa02d36aaeef0143d3de615d1d7345b0
Author: Jiwei Guo <te...@apache.org>
AuthorDate: Thu Sep 15 09:49:59 2022 +0800

    Add a constructor method for NettyServerSslContextBuilder. (#17649)
---
 .../apache/pulsar/common/util/NettyServerSslContextBuilder.java  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/pulsar-common/src/main/java/org/apache/pulsar/common/util/NettyServerSslContextBuilder.java b/pulsar-common/src/main/java/org/apache/pulsar/common/util/NettyServerSslContextBuilder.java
index e9fbb1f5e3e..0e3539b2b3f 100644
--- a/pulsar-common/src/main/java/org/apache/pulsar/common/util/NettyServerSslContextBuilder.java
+++ b/pulsar-common/src/main/java/org/apache/pulsar/common/util/NettyServerSslContextBuilder.java
@@ -39,6 +39,15 @@ public class NettyServerSslContextBuilder extends SslContextAutoRefreshBuilder<S
     protected final boolean tlsRequireTrustedClientCertOnConnect;
     protected final SslProvider sslProvider;
 
+    public NettyServerSslContextBuilder(boolean allowInsecure, String trustCertsFilePath,
+                                        String certificateFilePath,
+                                        String keyFilePath, Set<String> ciphers, Set<String> protocols,
+                                        boolean requireTrustedClientCertOnConnect,
+                                        long delayInSeconds) {
+        this(null, allowInsecure, trustCertsFilePath, certificateFilePath, keyFilePath, ciphers, protocols,
+                requireTrustedClientCertOnConnect, delayInSeconds);
+    }
+
     public NettyServerSslContextBuilder(SslProvider sslProvider, boolean allowInsecure, String trustCertsFilePath,
                                         String certificateFilePath,
                                         String keyFilePath, Set<String> ciphers, Set<String> protocols,