diff options
author | kstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2011-10-12 10:53:56 +0000 |
---|---|---|
committer | kstranacher <kstranacher@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2011-10-12 10:53:56 +0000 |
commit | e031b0d5854e4038d28c262109c2529609418ffe (patch) | |
tree | 500788ef2f83c51b0b6c7bdb0e0ba78dd24f5dcc /common/src/test/java | |
parent | f4386f6f0346fa2a5432c3f95fcc852f7a7df1ec (diff) | |
download | moa-id-spss-e031b0d5854e4038d28c262109c2529609418ffe.tar.gz moa-id-spss-e031b0d5854e4038d28c262109c2529609418ffe.tar.bz2 moa-id-spss-e031b0d5854e4038d28c262109c2529609418ffe.zip |
* Aktualisierung imports
MOA-ID:
* Abfrage auf Vollmachtenmodus bei nicht öffentlicher Andwendung
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@1222 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/src/test/java')
-rw-r--r-- | common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java b/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java index 8e5b9f82a..2b5094fb8 100644 --- a/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java +++ b/common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java @@ -24,8 +24,6 @@ package test.at.gv.egovernment.moa.util; -import java.io.FileInputStream; -import java.io.IOException; import java.net.URL; import java.security.KeyStore; import java.security.Security; @@ -33,13 +31,12 @@ import java.security.Security; import javax.net.ssl.SSLException; import javax.net.ssl.SSLSocketFactory; -import com.sun.net.ssl.HostnameVerifier; -import com.sun.net.ssl.HttpsURLConnection; - +import junit.framework.TestCase; import at.gv.egovernment.moa.util.KeyStoreUtils; import at.gv.egovernment.moa.util.SSLUtils; -import junit.framework.TestCase; +import com.sun.net.ssl.HostnameVerifier; +import com.sun.net.ssl.HttpsURLConnection; /** * @author Paul Ivancsics @@ -167,15 +164,15 @@ public class SSLUtilsTest extends TestCase { assertFalse(shouldOk); } } - private byte[] readTruststore(String filename) throws IOException { - if (filename == null) - return null; - FileInputStream in = new FileInputStream(filename); - byte[] buffer = new byte[in.available()]; - in.read(buffer); - in.close(); - return buffer; - } +// private byte[] readTruststore(String filename) throws IOException { +// if (filename == null) +// return null; +// FileInputStream in = new FileInputStream(filename); +// byte[] buffer = new byte[in.available()]; +// in.read(buffer); +// in.close(); +// return buffer; +// } private class HostnameVerifierHack implements HostnameVerifier { public boolean verify(String arg0, String arg1) { return true; |