cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [4/4] cxf git commit: Removing test that fails with JDK6
Date Mon, 25 Jul 2016 11:40:25 GMT
Removing test that fails with JDK6


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/8bfa04d6
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/8bfa04d6
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/8bfa04d6

Branch: refs/heads/3.0.x-fixes
Commit: 8bfa04d6d36cd8e3ea5699dddcd8fc70943b517a
Parents: d8aeb09
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Mon Jul 25 12:40:10 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Mon Jul 25 12:40:10 2016 +0100

----------------------------------------------------------------------
 .../https/clientauth/ClientAuthTest.java        | 42 --------------------
 1 file changed, 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8bfa04d6/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java
----------------------------------------------------------------------
diff --git a/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java
b/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java
index 643be9d..d889103 100644
--- a/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java
+++ b/systests/transports/src/test/java/org/apache/cxf/systest/https/clientauth/ClientAuthTest.java
@@ -19,16 +19,10 @@
 
 package org.apache.cxf.systest.https.clientauth;
 
-import java.io.FileInputStream;
 import java.net.URL;
-import java.security.KeyStore;
 
 import javax.net.ssl.HostnameVerifier;
-import javax.net.ssl.HttpsURLConnection;
-import javax.net.ssl.KeyManagerFactory;
-import javax.net.ssl.SSLContext;
 import javax.net.ssl.SSLSession;
-import javax.net.ssl.TrustManagerFactory;
 
 import org.apache.cxf.Bus;
 import org.apache.cxf.bus.spring.SpringBusFactory;
@@ -253,42 +247,6 @@ public class ClientAuthTest extends AbstractBusClientServerTestBase {
         bus.shutdown(true);
     }
     
-    @org.junit.Test
-    public void testSSLConnectionUsingJavaAPIs() throws Exception {
-        URL service = new URL("https://localhost:" + PORT);
-        HttpsURLConnection connection = (HttpsURLConnection) service.openConnection();
-        
-        connection.setHostnameVerifier(new DisableCNCheckVerifier());
-        
-        SSLContext sslContext = SSLContext.getInstance("TLS");
-        
-        URL trustStore = ClientAuthTest.class.getResource("../../../../../../keys/Truststore.jks");
-        KeyStore ts = KeyStore.getInstance("JKS");
-        FileInputStream trustStoreInputStream = new FileInputStream(trustStore.getPath());
-        ts.load(trustStoreInputStream, "password".toCharArray());
-        trustStoreInputStream.close();
-
-        TrustManagerFactory tmf = TrustManagerFactory.getInstance("PKIX");
-        tmf.init(ts);
-        
-        URL keyStore = ClientAuthTest.class.getResource("../../../../../../keys/Morpit.jks");
-        KeyStore ks = KeyStore.getInstance("JKS");
-        FileInputStream keyStoreInputStream = new FileInputStream(keyStore.getPath());
-        ks.load(keyStoreInputStream, "password".toCharArray());
-        keyStoreInputStream.close();
-
-        KeyManagerFactory kmf = KeyManagerFactory.getInstance("PKIX");
-        kmf.init(ks, "password".toCharArray());
-
-        sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), new java.security.SecureRandom());
-        
-        connection.setSSLSocketFactory(sslContext.getSocketFactory());
-        
-        connection.connect();
-        
-        connection.disconnect();
-    }
-    
     private static final class DisableCNCheckVerifier implements HostnameVerifier {
 
         @Override


Mime
View raw message