From 51f15f39a585310e694ab3b42a2beacf56bd18a6 Mon Sep 17 00:00:00 2001 From: knowcenter Date: Thu, 17 May 2007 15:28:49 +0000 Subject: web git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@88 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../test/at/knowcenter/wag/egov/egiz/TestNeu.java | 32 ++++++++++++---------- 1 file 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(); -- cgit v1.2.3