Skip to content

Commit e443ee5

Browse files
committed
Issue #156 - Change SSL help text to a Constant, remove NextGen branding and ads from the message
Signed-off-by: Jon Bartels <jon.bartels@teladochealth.com>
1 parent 956c284 commit e443ee5

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

client/src/com/mirth/connect/client/ui/UIConstants.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,13 @@ public class UIConstants {
129129

130130
// User preferences
131131
public static final String USER_PREF_KEY_BACKGROUND_COLOR = "backgroundColor";
132+
133+
// SSL Warning Text
134+
// This text is used in the SSL Warning Panel for HTTP and WS connectors.
135+
public static final String SSL_WARNING_TEXT = "<html>\n" +
136+
"<body class=\"ssl-warning-panel\"><b><span style=\"color:#404040\">Important Notice:</span></b> The default system\n" +
137+
"certificate store will be used for this connection. As a result, certain security options are not available and mutual\n" +
138+
"authentication (two-way authentication) is not supported.\n" +
139+
"</body>\n" +
140+
"</html>";
132141
}

client/src/com/mirth/connect/connectors/http/SSLWarningPanel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import com.mirth.connect.client.ui.BareBonesBrowserLaunch;
2626
import com.mirth.connect.client.ui.UIConstants;
2727

28+
import static com.mirth.connect.client.ui.UIConstants.SSL_WARNING_TEXT;
29+
2830
public class SSLWarningPanel extends JPanel implements HyperlinkListener {
2931

3032
public SSLWarningPanel() {
@@ -42,7 +44,7 @@ public SSLWarningPanel() {
4244
editorPane.setBackground(getBackground());
4345
editorPane.setEditable(false);
4446
editorPane.addHyperlinkListener(this);
45-
editorPane.setText("<html><body class=\"ssl-warning-panel\"><b><span style=\"color:#404040\">Important Notice:</span></b> 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.<br/><br/>The <a href=\"https://www.nextgen.com/products-and-services/integration-engine#tab_extensions?extension=ssl-manager\">SSL Manager extension</a> 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 <a href=\"https://www.nextgen.com/contact-us\">NextGen Healthcare sales</a>.</body></html>");
47+
editorPane.setText(SSL_WARNING_TEXT);
4648
add(editorPane, "grow");
4749
}
4850

client/src/com/mirth/connect/connectors/ws/SSLWarningPanel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import com.mirth.connect.client.ui.BareBonesBrowserLaunch;
2626
import com.mirth.connect.client.ui.UIConstants;
2727

28+
import static com.mirth.connect.client.ui.UIConstants.SSL_WARNING_TEXT;
29+
2830
public class SSLWarningPanel extends JPanel implements HyperlinkListener {
2931

3032
public SSLWarningPanel() {
@@ -42,7 +44,7 @@ public SSLWarningPanel() {
4244
editorPane.setBackground(getBackground());
4345
editorPane.setEditable(false);
4446
editorPane.addHyperlinkListener(this);
45-
editorPane.setText("<html><body class=\"ssl-warning-panel\"><b><span style=\"color:#404040\">Important Notice:</span></b> 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.<br/><br/>The <a href=\"https://www.nextgen.com/products-and-services/integration-engine#tab_extensions?extension=ssl-manager\">SSL Manager extension</a> 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 <a href=\"https://www.nextgen.com/contact-us\">NextGen Healthcare sales</a>.</body></html>");
47+
editorPane.setText(SSL_WARNING_TEXT);
4648
add(editorPane, "grow");
4749
}
4850

0 commit comments

Comments
 (0)