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 <rha...@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; }