cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] cxf git commit: Removing unnecessary stuff from test
Date Thu, 23 Mar 2017 15:52:31 GMT
Removing unnecessary stuff from test


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

Branch: refs/heads/master
Commit: 1d4c40d0f87ccaa09b22d0b0da2db2801f69a00b
Parents: 3da5664
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Mar 23 10:02:10 2017 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Mar 23 14:22:46 2017 +0000

----------------------------------------------------------------------
 .../apache/cxf/systest/https/trust/TrustManagerTest.java | 11 -----------
 1 file changed, 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/1d4c40d0/systests/transports/src/test/java/org/apache/cxf/systest/https/trust/TrustManagerTest.java
----------------------------------------------------------------------
diff --git a/systests/transports/src/test/java/org/apache/cxf/systest/https/trust/TrustManagerTest.java
b/systests/transports/src/test/java/org/apache/cxf/systest/https/trust/TrustManagerTest.java
index 678b7af..a2b9fa6 100644
--- a/systests/transports/src/test/java/org/apache/cxf/systest/https/trust/TrustManagerTest.java
+++ b/systests/transports/src/test/java/org/apache/cxf/systest/https/trust/TrustManagerTest.java
@@ -20,18 +20,13 @@
 package org.apache.cxf.systest.https.trust;
 
 import java.io.InputStream;
-import java.net.URI;
 import java.net.URL;
 import java.security.KeyStore;
 import java.security.Security;
-import java.security.cert.CertPathBuilder;
 import java.security.cert.CertificateException;
 import java.security.cert.PKIXBuilderParameters;
-import java.security.cert.PKIXRevocationChecker;
-import java.security.cert.PKIXRevocationChecker.Option;
 import java.security.cert.X509CertSelector;
 import java.security.cert.X509Certificate;
-import java.util.EnumSet;
 
 import javax.net.ssl.CertPathTrustManagerParameters;
 import javax.net.ssl.TrustManager;
@@ -215,14 +210,8 @@ public class TrustManagerTest extends AbstractBusClientServerTestBase
{
         try {
             Security.setProperty("ocsp.enable", "true");
             
-            CertPathBuilder cpb = CertPathBuilder.getInstance("PKIX");
-            PKIXRevocationChecker rc = (PKIXRevocationChecker)cpb.getRevocationChecker();
-            rc.setOcspResponder(URI.create("http://localhost:12345"));
-            rc.setOptions(EnumSet.of(Option.NO_FALLBACK));
-    
             PKIXBuilderParameters param = new PKIXBuilderParameters(ts, new X509CertSelector());
             param.setRevocationEnabled(true);
-            param.addCertPathChecker(rc);
             
             TrustManagerFactory tmf  =
                 TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());


Mime
View raw message