aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java2
-rw-r--r--common/src/test/java/test/at/gv/egovernment/moa/util/SSLUtilsTest.java27
2 files changed, 12 insertions, 17 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java b/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java
index 13c2809ac..316dee3b8 100644
--- a/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java
+++ b/common/src/main/java/at/gv/egovernment/moa/util/DOMUtils.java
@@ -28,7 +28,6 @@ import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.io.StringWriter;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
@@ -44,7 +43,6 @@ import javax.xml.transform.OutputKeys;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
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;