diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-06-07 12:16:36 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-06-07 12:16:36 +0200 |
commit | 4d0c73640c083a800060863309129960f44fc281 (patch) | |
tree | acc46d3060114d66907c18a9d0c92761a03172b2 /moaSig/common/src/test | |
parent | 44d138de959445a619a92608a2133d9558c2a888 (diff) | |
download | moa-sig-4d0c73640c083a800060863309129960f44fc281.tar.gz moa-sig-4d0c73640c083a800060863309129960f44fc281.tar.bz2 moa-sig-4d0c73640c083a800060863309129960f44fc281.zip |
a lot of changes
Diffstat (limited to 'moaSig/common/src/test')
-rw-r--r-- | moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/KeyStoreUtilsTest.java | 2 | ||||
-rw-r--r-- | moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/KeyStoreUtilsTest.java b/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/KeyStoreUtilsTest.java index 5e0c8fb..443452c 100644 --- a/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/KeyStoreUtilsTest.java +++ b/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/KeyStoreUtilsTest.java @@ -50,7 +50,7 @@ public class KeyStoreUtilsTest extends TestCase { } protected void setUp() throws Exception { - Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); + //Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); new File(tmpDir).mkdirs(); } protected void tearDown() throws Exception { diff --git a/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java b/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java index 31a0591..8715380 100644 --- a/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java +++ b/moaSig/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java @@ -33,8 +33,8 @@ import javax.net.ssl.SSLSocketFactory; import junit.framework.TestCase; -import com.sun.net.ssl.HostnameVerifier; -import com.sun.net.ssl.HttpsURLConnection; +//import com.sun.net.ssl.HostnameVerifier; +//import com.sun.net.ssl.HttpsURLConnection; import at.gv.egovernment.moaspss.util.KeyStoreUtils; import at.gv.egovernment.moaspss.util.SSLUtils; @@ -52,7 +52,7 @@ public class SSLUtilsTest extends TestCase { protected void setUp() throws Exception { //System.setProperty("javax.net.debug", "all"); - Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); + //Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()); System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol"); System.setProperty("https.cipherSuites", "SSL_DHE_DSS_WITH_DES_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA,SSL_RSA_WITH_DES_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,SSL_RSA_EXPORT_WITH_RC4_40_MD5"); } @@ -146,7 +146,7 @@ public class SSLUtilsTest extends TestCase { System.out.println(requestMethod + " " + urlString); URL url = new URL(urlString); - HttpsURLConnection conn = (HttpsURLConnection)url.openConnection(); + /*HttpsURLConnection conn = (HttpsURLConnection)url.openConnection(); conn.setRequestMethod(requestMethod); conn.setDoInput(true); conn.setDoOutput(true); @@ -164,7 +164,7 @@ public class SSLUtilsTest extends TestCase { catch (SSLException ex) { assertFalse(shouldOk); } - } + }*/ // private byte[] readTruststore(String filename) throws IOException { // if (filename == null) // return null; @@ -174,9 +174,9 @@ public class SSLUtilsTest extends TestCase { // in.close(); // return buffer; // } - private class HostnameVerifierHack implements HostnameVerifier { - public boolean verify(String arg0, String arg1) { - return true; - } + //private class HostnameVerifierHack implements HostnameVerifier { + //public boolean verify(String arg0, String arg1) { + // return true; + //} } } |