You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by cm...@apache.org on 2019/06/03 17:35:52 UTC
[kafka] branch 2.3 updated: KAFKA-8475: Temporarily restore
SslFactory.sslContext() helper
This is an automated email from the ASF dual-hosted git repository.
cmccabe pushed a commit to branch 2.3
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/2.3 by this push:
new 5cb3bec KAFKA-8475: Temporarily restore SslFactory.sslContext() helper
5cb3bec is described below
commit 5cb3bec626f7db8dd7e1db7f3eae8a13298ddff5
Author: Randall Hauch <rh...@gmail.com>
AuthorDate: Mon Jun 3 12:34:55 2019 -0500
KAFKA-8475: Temporarily restore SslFactory.sslContext() helper
Temporarily restore the SslFactory.sslContext() function, which some connectors use. This function is not a public API and it will be removed eventually. For now, we will mark it as deprecated.
---
.../main/java/org/apache/kafka/common/security/ssl/SslFactory.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java b/clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java
index 882b63d..4d94230 100644
--- a/clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java
+++ b/clients/src/main/java/org/apache/kafka/common/security/ssl/SslFactory.java
@@ -26,6 +26,7 @@ import org.apache.kafka.common.utils.Utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLEngineResult;
import javax.net.ssl.SSLException;
@@ -168,6 +169,11 @@ public class SslFactory implements Reconfigurable {
return sslEngineBuilder.createSslEngine(mode, peerHost, peerPort, endpointIdentification);
}
+ @Deprecated
+ public SSLContext sslContext() {
+ return sslEngineBuilder.sslContext();
+ }
+
public SslEngineBuilder sslEngineBuilder() {
return sslEngineBuilder;
}