aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();