From b75e606c60d47eb7f1acf1c5a9fc4d24ec908a06 Mon Sep 17 00:00:00 2001 From: Jon Bartels Date: Thu, 14 Aug 2025 17:54:54 -0400 Subject: [PATCH] Issue #156 - Change SSL help text to a Constant, remove NextGen branding and ads from the message Signed-off-by: Jon Bartels --- client/src/com/mirth/connect/client/ui/UIConstants.java | 9 +++++++++ .../mirth/connect/connectors/http/SSLWarningPanel.java | 4 +++- .../com/mirth/connect/connectors/ws/SSLWarningPanel.java | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/client/src/com/mirth/connect/client/ui/UIConstants.java b/client/src/com/mirth/connect/client/ui/UIConstants.java index 0d39c0963c..ea5fb85bf2 100644 --- a/client/src/com/mirth/connect/client/ui/UIConstants.java +++ b/client/src/com/mirth/connect/client/ui/UIConstants.java @@ -129,4 +129,13 @@ public class UIConstants { // User preferences public static final String USER_PREF_KEY_BACKGROUND_COLOR = "backgroundColor"; + + // SSL Warning Text + // This text is used in the SSL Warning Panel for HTTP and WS connectors. + public static final String SSL_WARNING_TEXT = "\n" + + "Important Notice: The default system\n" + + "certificate store will be used for this connection. As a result, certain security options are not available and mutual\n" + + "authentication (two-way authentication) is not supported.\n" + + "\n" + + ""; } diff --git a/client/src/com/mirth/connect/connectors/http/SSLWarningPanel.java b/client/src/com/mirth/connect/connectors/http/SSLWarningPanel.java index 6f52416705..7e19c9d923 100644 --- a/client/src/com/mirth/connect/connectors/http/SSLWarningPanel.java +++ b/client/src/com/mirth/connect/connectors/http/SSLWarningPanel.java @@ -25,6 +25,8 @@ import com.mirth.connect.client.ui.BareBonesBrowserLaunch; import com.mirth.connect.client.ui.UIConstants; +import static com.mirth.connect.client.ui.UIConstants.SSL_WARNING_TEXT; + public class SSLWarningPanel extends JPanel implements HyperlinkListener { public SSLWarningPanel() { @@ -42,7 +44,7 @@ public SSLWarningPanel() { editorPane.setBackground(getBackground()); editorPane.setEditable(false); editorPane.addHyperlinkListener(this); - editorPane.setText("Important Notice: The default system certificate store will be used for this connection. As a result, certain security options are not available and mutual authentication (two-way authentication) is not supported.

The SSL Manager extension for NextGen Connect provides advanced security and certificate management enhancements, including the ability to import certificates for use by source or destination connectors, as well as the ability to configure hostname verification and client authentication settings. For more information please contact NextGen Healthcare sales."); + editorPane.setText(SSL_WARNING_TEXT); add(editorPane, "grow"); } diff --git a/client/src/com/mirth/connect/connectors/ws/SSLWarningPanel.java b/client/src/com/mirth/connect/connectors/ws/SSLWarningPanel.java index dbd1c51331..637db36e54 100644 --- a/client/src/com/mirth/connect/connectors/ws/SSLWarningPanel.java +++ b/client/src/com/mirth/connect/connectors/ws/SSLWarningPanel.java @@ -25,6 +25,8 @@ import com.mirth.connect.client.ui.BareBonesBrowserLaunch; import com.mirth.connect.client.ui.UIConstants; +import static com.mirth.connect.client.ui.UIConstants.SSL_WARNING_TEXT; + public class SSLWarningPanel extends JPanel implements HyperlinkListener { public SSLWarningPanel() { @@ -42,7 +44,7 @@ public SSLWarningPanel() { editorPane.setBackground(getBackground()); editorPane.setEditable(false); editorPane.addHyperlinkListener(this); - editorPane.setText("Important Notice: The default system certificate store will be used for this connection. As a result, certain security options are not available and mutual authentication (two-way authentication) is not supported.

The SSL Manager extension for NextGen Connect provides advanced security and certificate management enhancements, including the ability to import certificates for use by source or destination connectors, as well as the ability to configure hostname verification and client authentication settings. For more information please contact NextGen Healthcare sales."); + editorPane.setText(SSL_WARNING_TEXT); add(editorPane, "grow"); }