aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-05-17 15:28:49 +0000
committerknowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2007-05-17 15:28:49 +0000
commit51f15f39a585310e694ab3b42a2beacf56bd18a6 (patch)
tree9b95fe9c0de0b01f3d2637a06581f34a71c0abd3 /src/test/java
parent527484bcc0a65c61d50209849f7b3db34f0128f7 (diff)
downloadpdf-as-3-51f15f39a585310e694ab3b42a2beacf56bd18a6.tar.gz
pdf-as-3-51f15f39a585310e694ab3b42a2beacf56bd18a6.tar.bz2
pdf-as-3-51f15f39a585310e694ab3b42a2beacf56bd18a6.zip
web
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@88 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/test/at/knowcenter/wag/egov/egiz/TestNeu.java32
1 files changed, 18 insertions, 14 deletions
diff --git a/src/test/java/test/at/knowcenter/wag/egov/egiz/TestNeu.java b/src/test/java/test/at/knowcenter/wag/egov/egiz/TestNeu.java
index c35d640..fdbaee5 100644
--- a/src/test/java/test/at/knowcenter/wag/egov/egiz/TestNeu.java
+++ b/src/test/java/test/at/knowcenter/wag/egov/egiz/TestNeu.java
@@ -23,11 +23,14 @@ import at.knowcenter.wag.egov.egiz.sig.SignatureData;
import at.knowcenter.wag.egov.egiz.sig.SignatureObject;
import at.knowcenter.wag.egov.egiz.sig.SignatureResponse;
import at.knowcenter.wag.egov.egiz.sig.connectors.Connector;
-import at.knowcenter.wag.egov.egiz.sig.connectors.bku.DetachedMultipartBKUConnector;
+import at.knowcenter.wag.egov.egiz.sig.connectors.bku.BKUPostConnection;
+import at.knowcenter.wag.egov.egiz.sig.connectors.bku.DetachedBKUConnector;
import at.knowcenter.wag.egov.egiz.sig.connectors.bku.EnvelopedBase64BKUConnector;
+import at.knowcenter.wag.egov.egiz.sig.connectors.bku.MultipartDetachedBKUConnector;
import at.knowcenter.wag.egov.egiz.sig.connectors.bku.SignSignatureObject;
import at.knowcenter.wag.egov.egiz.sig.connectors.moa.DetachedLocRefMOAConnector;
import at.knowcenter.wag.egov.egiz.sig.connectors.moa.EnvelopingBase64MOAConnector;
+import at.knowcenter.wag.egov.egiz.tools.DebugHelper;
/**
* @author wprinz
@@ -75,11 +78,11 @@ public class TestNeu
{
Connector c = new EnvelopedBase64BKUConnector("CIO-BUND2"); //$NON-NLS-1$
- SignatureData data = new TextSignatureData();
+ SignatureData data = new BinarySignatureData();
{
SignSignatureObject so = c.doSign(data);
-
+
FileOutputStream fos = new FileOutputStream("C:\\wprinz\\Filer\\egiz2\\SignatureObject.bin");
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject(so);
@@ -93,6 +96,7 @@ public class TestNeu
ois.close();
SignatureResponse sr = c.doVerify(data, so);
+
logger.debug("sr = " + sr);
}
}
@@ -101,7 +105,7 @@ public class TestNeu
{
Connector c = new EnvelopingBase64MOAConnector("CIO-BUND2"); //$NON-NLS-1$
- SignatureData data = new TextSignatureData();
+ SignatureData data = new BinarySignatureData();
{
SignSignatureObject so = c.doSign(data);
@@ -123,19 +127,19 @@ public class TestNeu
}
}
- public static void testDetachedLocRefMOAConnector() throws Exception
- {
- DetachedLocRefMOAConnector c = new DetachedLocRefMOAConnector("CIO-BUND2"); //$NON-NLS-1$
-
- SignatureData data = new TextSignatureData();
-
- SignSignatureObject so = c.doSign(data);
-
- }
+// public static void testDetachedLocRefMOAConnector() throws Exception
+// {
+// DetachedLocRefMOAConnector c = new DetachedLocRefMOAConnector("CIO-BUND2"); //$NON-NLS-1$
+//
+// SignatureData data = new TextSignatureData();
+//
+// SignSignatureObject so = c.doSign(data);
+//
+// }
public static void testDetachedMultipartBKUConnector() throws Exception
{
- DetachedMultipartBKUConnector c = new DetachedMultipartBKUConnector("CIO-BUND2"); //$NON-NLS-1$
+ DetachedBKUConnector c = new MultipartDetachedBKUConnector("CIO-BUND2"); //$NON-NLS-1$
SignatureData data = new BinarySignatureData();