Skip to content

Commit

Permalink
[CXF-8997] AbstractSTSTokenTest and TransportBindingTests no longer n…
Browse files Browse the repository at this point in the history
…eed to set https protocol to TLSv1 on IBM Java (#1785)
  • Loading branch information
jgoodyear authored Apr 3, 2024
1 parent 2244630 commit 93a29d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,6 @@ public boolean verify(String hostname, javax.net.ssl.SSLSession sslSession) {

SSLContext sc = SSLUtils.getSSLContext(TLSClientParametersUtils.getTLSClientParameters());
HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());

// Needed to prevent test failure using IBM JDK
if ("IBM Corporation".equals(System.getProperty("java.vendor"))) {
System.setProperty("https.protocols", "TLSv1");
}
}

static void validateSecurityToken(SecurityToken token) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,6 @@ public void testUnknownAddress() throws Exception {
@org.junit.Test
public void testSAML2Dispatch() throws Exception {

// Needed to prevent test failure using IBM JDK
if ("IBM Corporation".equals(System.getProperty("java.vendor"))) {
System.setProperty("https.protocols", "TLSv1");
}

createBus(getClass().getResource("cxf-client.xml").toString());

URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl");
Expand Down Expand Up @@ -342,11 +337,6 @@ public void testSAML2Dispatch() throws Exception {
@org.junit.Test
public void testSAML2DispatchLocation() throws Exception {

// Needed to prevent test failure using IBM JDK
if ("IBM Corporation".equals(System.getProperty("java.vendor"))) {
System.setProperty("https.protocols", "TLSv1");
}

createBus(getClass().getResource("cxf-client.xml").toString());

URL wsdl = TransportBindingTest.class.getResource("DoubleIt.wsdl");
Expand Down

0 comments on commit 93a29d7

Please sign in to comment.