Skip to content

Commit 7ecf54b

Browse files
mgaffiganjonbartels
authored andcommitted
Remove version check since all supported java versions support tls1.3
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
1 parent 388bcea commit 7ecf54b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

server/test/com/mirth/connect/util/MirthSSLUtilTest.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,9 @@ public void testEnabledProtocols() throws Exception {
2929
String[] enabledClientProtocols = MirthSSLUtil.getEnabledHttpsProtocols(defaultClientProtocols);
3030
String[] enabledServerProtocols = MirthSSLUtil.getEnabledHttpsProtocols(defaultServerProtocols);
3131

32-
// TLSv1.3 supported in Java 11+
33-
if (getJavaVersion() >= 11) {
34-
assertTrue(ArrayUtils.contains(enabledClientProtocols, "TLSv1.3"));
35-
assertTrue(ArrayUtils.contains(enabledServerProtocols, "TLSv1.3"));
36-
}
32+
// TLSv1.3 supported in Java 8u261+
33+
assertTrue(ArrayUtils.contains(enabledClientProtocols, "TLSv1.3"));
34+
assertTrue(ArrayUtils.contains(enabledServerProtocols, "TLSv1.3"));
3735
}
3836

3937
@Test
@@ -44,10 +42,8 @@ public void testEnabledCipherSuites() throws Exception {
4442

4543
String[] enabledClientCipherSuites = MirthSSLUtil.getEnabledHttpsCipherSuites(defaultClientCipherSuites);
4644

47-
// TLS_AES_256_GCM_SHA384 supported in Java 11+
48-
if (getJavaVersion() >= 11) {
49-
assertTrue(ArrayUtils.contains(enabledClientCipherSuites, "TLS_AES_256_GCM_SHA384"));
50-
}
45+
// TLS_AES_256_GCM_SHA384 supported in Java 8u261+
46+
assertTrue(ArrayUtils.contains(enabledClientCipherSuites, "TLS_AES_256_GCM_SHA384"));
5147
}
5248

5349
private int getJavaVersion() {

0 commit comments

Comments
 (0)