You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2017/03/23 15:52:31 UTC
[2/2] cxf git commit: Removing unnecessary stuff from test
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 <co...@apache.org>
Authored: Thu Mar 23 10:02:10 2017 +0000
Committer: Colm O hEigeartaigh <co...@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());