aboutsummaryrefslogtreecommitdiff
path: root/spss/handbook/clients/api
diff options
context:
space:
mode:
Diffstat (limited to 'spss/handbook/clients/api')
-rw-r--r--spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jarbin0 -> 71442 bytes
-rw-r--r--spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jarbin0 -> 26202 bytes
-rw-r--r--spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jarbin0 -> 38015 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jarbin0 -> 335169 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jarbin0 -> 257600 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jarbin0 -> 285185 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jarbin0 -> 127014 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jarbin0 -> 204092 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jarbin0 -> 828817 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jarbin0 -> 682332 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.sobin0 -> 113226 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.sobin0 -> 119858 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jarbin0 -> 350831 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jarbin0 -> 134782 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jarbin0 -> 837275 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.sobin0 -> 151944 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.sobin0 -> 211040 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dllbin0 -> 98304 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dllbin0 -> 67584 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jarbin0 -> 257600 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jarbin0 -> 285185 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jarbin0 -> 204098 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jarbin0 -> 692493 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.sobin0 -> 113226 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.sobin0 -> 119858 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jarbin0 -> 350831 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jarbin0 -> 134782 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jarbin0 -> 837275 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.sobin0 -> 151944 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.sobin0 -> 211040 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dllbin0 -> 98304 bytes
-rw-r--r--spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dllbin0 -> 67584 bytes
-rw-r--r--spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jarbin0 -> 160967 bytes
-rw-r--r--spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jarbin0 -> 13707 bytes
-rw-r--r--spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jarbin0 -> 23563 bytes
-rw-r--r--spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jarbin0 -> 26710 bytes
-rw-r--r--spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jarbin0 -> 27052 bytes
-rw-r--r--spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jarbin0 -> 26206 bytes
-rw-r--r--spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jarbin0 -> 350677 bytes
-rw-r--r--spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jarbin0 -> 163980 bytes
-rw-r--r--spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jarbin0 -> 2907319 bytes
-rw-r--r--spss/handbook/clients/api/signatures/SimpleSignature.xml23
-rw-r--r--spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java130
-rw-r--r--spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java147
44 files changed, 300 insertions, 0 deletions
diff --git a/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar b/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar
new file mode 100644
index 000000000..b88554847
--- /dev/null
+++ b/spss/handbook/clients/api/lib/commons-discovery-0.2/commons-discovery.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar
new file mode 100644
index 000000000..ade9a13c7
--- /dev/null
+++ b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging-api.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar
new file mode 100644
index 000000000..b73a80fab
--- /dev/null
+++ b/spss/handbook/clients/api/lib/commons-logging-1.0.4/commons-logging.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar
new file mode 100644
index 000000000..af39b42b1
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Provider.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar
new file mode 100644
index 000000000..43342ef7c
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_Pkcs11Wrapper.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar
new file mode 100644
index 000000000..7264a68f3
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_cms.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar
new file mode 100644
index 000000000..4cd73391d
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ecc.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar
new file mode 100644
index 000000000..5279f2247
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_ixsil.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar
new file mode 100644
index 000000000..fe14dbb2a
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_jce_full.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar
new file mode 100644
index 000000000..539988fba
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/iaik_moa_full.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so
new file mode 100644
index 000000000..11852511b
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so
new file mode 100644
index 000000000..393946053
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/linux_x64/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar
new file mode 100644
index 000000000..a348db04e
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_Pkcs11Provider.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar
new file mode 100644
index 000000000..b8a4f190b
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_ecc.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar
new file mode 100644
index 000000000..7288bc39d
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/signed/iaik_jce_full.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so
new file mode 100644
index 000000000..0b19f10c1
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparc/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so
new file mode 100644
index 000000000..11f928b0b
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/solaris_sparcv9/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll
new file mode 100644
index 000000000..3789b8d7a
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/win32/pkcs11wrapper.dll
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll
new file mode 100644
index 000000000..d98e48d80
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070503/full/wince30arm/pkcs11wrapper.dll
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar
new file mode 100644
index 000000000..43342ef7c
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_Pkcs11Wrapper.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar
new file mode 100644
index 000000000..7264a68f3
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_cms.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar
new file mode 100644
index 000000000..003df0066
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_ixsil.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar
new file mode 100644
index 000000000..35ffc2d06
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/iaik_moa_full.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so
new file mode 100644
index 000000000..11852511b
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so
new file mode 100644
index 000000000..393946053
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/linux_x64/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar
new file mode 100644
index 000000000..a348db04e
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_Pkcs11Provider.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar
new file mode 100644
index 000000000..b8a4f190b
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_ecc.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar
new file mode 100644
index 000000000..7288bc39d
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/signed/iaik_jce_full.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so
new file mode 100644
index 000000000..0b19f10c1
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparc/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so
new file mode 100644
index 000000000..11f928b0b
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/solaris_sparcv9/libpkcs11wrapper.so
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll
new file mode 100644
index 000000000..3789b8d7a
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/win32/pkcs11wrapper.dll
Binary files differ
diff --git a/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll
new file mode 100644
index 000000000..d98e48d80
--- /dev/null
+++ b/spss/handbook/clients/api/lib/iaik-moa-20070801/full/wince30arm/pkcs11wrapper.dll
Binary files differ
diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar
new file mode 100644
index 000000000..e52bf679c
--- /dev/null
+++ b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-core.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar
new file mode 100644
index 000000000..1a9926357
--- /dev/null
+++ b/spss/handbook/clients/api/lib/jaxen-1.0/jaxen-dom.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar b/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar
new file mode 100644
index 000000000..2b43955ba
--- /dev/null
+++ b/spss/handbook/clients/api/lib/jaxen-1.0/saxpath.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar
new file mode 100644
index 000000000..f91f80a8b
--- /dev/null
+++ b/spss/handbook/clients/api/lib/jaxp-1.2_01/dom.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar
new file mode 100644
index 000000000..7a3295ee6
--- /dev/null
+++ b/spss/handbook/clients/api/lib/jaxp-1.2_01/jaxp-api.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar b/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar
new file mode 100644
index 000000000..9ffb844e5
--- /dev/null
+++ b/spss/handbook/clients/api/lib/jaxp-1.2_01/sax.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar b/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar
new file mode 100644
index 000000000..1595a56ef
--- /dev/null
+++ b/spss/handbook/clients/api/lib/log4j-1.2.7/log4j-1.2.7.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar b/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar
new file mode 100644
index 000000000..8bf46dd8e
--- /dev/null
+++ b/spss/handbook/clients/api/lib/postgres-jdbc2-7.3/pg73jdbc2.jar
Binary files differ
diff --git a/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar b/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar
new file mode 100644
index 000000000..44d4d094d
--- /dev/null
+++ b/spss/handbook/clients/api/lib/xalan-j-2.5.1/xalan.jar
Binary files differ
diff --git a/spss/handbook/clients/api/signatures/SimpleSignature.xml b/spss/handbook/clients/api/signatures/SimpleSignature.xml
new file mode 100644
index 000000000..9ecd215c1
--- /dev/null
+++ b/spss/handbook/clients/api/signatures/SimpleSignature.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<dsig:Signature Id="signature-1-1" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><dsig:SignedInfo><dsig:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><dsig:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha1"/><dsig:Reference Id="reference-1-1" URI="#xpointer(id(&apos;signed-data-1-1-1&apos;)/node())"><dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><dsig:DigestValue>tLODyeiWFbAkQKwhrR23jtcgu4k=</dsig:DigestValue></dsig:Reference></dsig:SignedInfo><dsig:SignatureValue>VEjXB6+geUL16oTPDVx5lcQliGl/oyVobug3BVxVwhu8CU7WK65moTcTuo/CL2hQ</dsig:SignatureValue><dsig:KeyInfo><dsig:X509Data><dsig:X509Certificate>MIID+DCCA2WgAwIBAgIBCTAJBgUrDgMCHQUAMH8xCzAJBgNVBAYTAkFUMSwwKgYD
+VQQKEyNTdGFic3RlbGxlIElLVC1TdHJhdGVnaWUgZGVzIEJ1bmRlczEeMBwGA1UE
+CxMVVGVjaG5payB1bmQgU3RhbmRhcmRzMSIwIAYDVQQDExlUZXN0IENBIC0gU2ln
+bmF0dXJkaWVuc3RlMB4XDTA0MDgwNDA4MjM0OFoXDTA3MDgwNDA4MjM0OFowgZgx
+CzAJBgNVBAYTAkFUMS0wKwYDVQQKEyRTdGFic3N0ZWxsZSBJS1QtU3RyYXRlZ2ll
+IGRlcyBCdW5kZXMxHjAcBgNVBAsTFVRlY2huaWsgdW5kIFN0YW5kYXJkczE6MDgG
+A1UEAxMxVGVzdDogU2lnbmF0dXJkaWVuc3QgYWxsZXIgS3VuZGVuOiBFQ0RTQSAo
+UDE5MnYxKTCB8zCBvAYHKoZIzj0CATCBsAIBATAkBgcqhkjOPQEBAhkA////////
+/////////////v//////////MDQEGP////////////////////7//////////AQY
+ZCEFGeWcgOcPp+mrciQwSf643uzBRrmxBDEEGI2oDrAwkPZ8vyDrQ6GIAPT/Cv2C
+/xASBxkrlf/I2nhjEBHtayTN1XP5d6EeeUgRAhkA////////////////md74NhRr
+ybG00igxAgEBAzIABNHWY9lQOE1zgmpcpjTg2WIg6qgEsGhpXELPinJoMPDVheTv
+2BZPG42YJsNfvWgC06OCARwwggEYMA4GA1UdDwEB/wQEAwIGwDAMBgNVHRMBAf8E
+AjAAMB0GA1UdDgQWBBRHH5EXnrWosCmIa+JyEM5seMxFVzBdBgNVHSAEVjBUMFIG
+DCsGAQQBlRIBAgMBATBCMEAGCCsGAQUFBwICMDQaMkRpZXNlcyBaZXJ0aWZpa2F0
+IGlzdCBudXIgZvxyIFRlc3R6d2Vja2UgZ2VlaWduZXQuMEMGA1UdHwQ8MDowOKA2
+oDSGMmh0dHA6Ly9sYWJzLmNpby5ndi5hdC90ZW1wL2NybHMvc2lnbmF0dXJkaWVu
+c3QuY3JsMBQGByooAAoBAQEECQwHQktBLUlLVDAfBgNVHSMEGDAWgBRAl0P5fWaw
+vf59+uxGcYY9wffZPTAJBgUrDgMCHQUAA4GBAIMKUsnajgfBtpHeDdMdQMLA8fdt
+lluezDOM78WYYSFURP04QZk5iHkShzptgZCF5Y/T4an3dC3SnytL67LJvEoKUyja
+iTMLo7650xRTvAjTaMJ+nly/wTRYJKplOLXKWj3WwfObMHXdsDE8NJmpJSRE7Sw7
++tj+UiTiNNSaXirq</dsig:X509Certificate></dsig:X509Data></dsig:KeyInfo><dsig:Object Id="signed-data-1-1-1">Diese Daten werden signiert.</dsig:Object></dsig:Signature> \ No newline at end of file
diff --git a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java
new file mode 100644
index 000000000..2534e4913
--- /dev/null
+++ b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/CreateXMLSignature.java
@@ -0,0 +1,130 @@
+package at.gv.egovernment.moa.spss.handbook.clients.api;
+
+import java.io.ByteArrayInputStream;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.w3c.dom.Element;
+
+import at.gv.egovernment.moa.spss.api.SPSSFactory;
+import at.gv.egovernment.moa.spss.api.SignatureCreationService;
+import at.gv.egovernment.moa.spss.api.common.Content;
+import at.gv.egovernment.moa.spss.api.common.MetaInfo;
+import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfo;
+import at.gv.egovernment.moa.spss.api.xmlsign.CreateTransformsInfoProfile;
+import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureRequest;
+import at.gv.egovernment.moa.spss.api.xmlsign.CreateXMLSignatureResponse;
+import at.gv.egovernment.moa.spss.api.xmlsign.DataObjectInfo;
+import at.gv.egovernment.moa.spss.api.xmlsign.SignatureEnvironmentResponse;
+import at.gv.egovernment.moa.spss.api.xmlsign.SingleSignatureInfo;
+import at.gv.egovernment.moa.util.DOMUtils;
+
+/**
+ * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS. Es wird damit eine
+ * einfach aufgebaute XML-Signatur erzeugt.
+ */
+public class CreateXMLSignature
+{
+ /**
+ * Methode main.
+ *
+ * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS. Es wird damit eine
+ * einfach aufgebaute XML-Signatur erzeugt.
+ *
+ * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property
+ * <code>java.endorsed.dirs</code> auf jenes Verzeichnis gesetzt haben, in dem sich die XPath-
+ * und XSLT-Bibliothek <em>Xalan-J</em> befindet.
+ *
+ * @param args <ul>
+ * <li>
+ * args[0] enthält einen Verweis auf die Konfigurations-Datei von MOA SP/SS Der Verweis
+ * enthält entweder eine absolute oder eine relative Pfadangabe, wobei eine relative
+ * Angabe als relativ zum Arbeitsverzeichnis der Java VM interpretiert wird.
+ * </li>
+ * <li>
+ * args[1] enthält einen Verweis auf die Konfigurations-Datei von Log4J, dem Logging-
+ * Framework, das von MOA SP/SS verwendet wird. Der Verweis enthält entweder eine
+ * absolute oder eine relative Pfadangabe, wobei eine relative Angabe als relativ zum
+ * Arbeitsverzeichnis der Java VM interpretiert wird.
+ * </li>
+ * </ul>
+ *
+ * @throws Exception Sollten Fehler auftreten werden die Fehler an die Java-VM weitergeleitet.
+ */
+ public static void main(String[] args) throws Exception
+ {
+ // Setzen der System-Properties
+ init(args);
+
+ // Serverfunktionshandler instanzieren
+ SPSSFactory spf = SPSSFactory.getInstance();
+
+ // Zu signierende Daten in ein Contentobjekt einbinden (die Daten werden hier explizit angegeben,
+ // sollen aber in der Signatur mittels URL "http://uri.data.org" referenziert werden
+ byte[] data = "Diese Daten werden signiert.".getBytes("UTF-8");
+ ByteArrayInputStream bis = new ByteArrayInputStream(data);
+ Content cont = spf.createContent(bis, null);
+
+ // Metainformationen zu den zu signierenden Daten erstellen
+ MetaInfo mi = spf.createMetaInfo("text/plain", null, null, null);
+
+ // Transformationen erstellen (hier werden keine Transformationen angewandt)
+ CreateTransformsInfo cti = spf.createCreateTransformsInfo(null, mi);
+ CreateTransformsInfoProfile ct = spf.createCreateTransformsInfoProfile(cti, null);
+
+ // Datenobjekt aufbauen
+ DataObjectInfo doi = spf.createDataObjectInfo(DataObjectInfo.STRUCTURE_ENVELOPING, false, cont, ct);
+
+ // Erstellen eines SingleSignatureInfo-Containers
+ // Enthält alle Angaben zur Erstellung *einer* Signatur
+ List dataobjectinfolist = new ArrayList();
+ dataobjectinfolist.add(doi);
+ SingleSignatureInfo ssi = spf.createSingleSignatureInfo(dataobjectinfolist, null, false);
+
+ // Erstellen des Request-Objekts (Schlüsselbezeichner, Liste von SingleSignatureInfo-Containern)
+ List singlesignatureinfolist = new ArrayList();
+ singlesignatureinfolist.add(ssi);
+ CreateXMLSignatureRequest cxsreq = spf.createCreateXMLSignatureRequest("KG_allgemein",
+ singlesignatureinfolist);
+
+ // Signatureerstellungsservice instanzieren und aufrufen
+ SignatureCreationService scs = SignatureCreationService.getInstance();
+ CreateXMLSignatureResponse cxsres = scs.createXMLSignature(cxsreq);
+
+ // Response auswerten
+ List elements = cxsres.getResponseElements();
+ SignatureEnvironmentResponse ser = (SignatureEnvironmentResponse) elements.get(0);
+
+ // Auswertung des ersten (und einzigen) SignatureEnvironmentResponse-Containers
+ int response_type = ser.getResponseType();
+
+ if (response_type == SignatureEnvironmentResponse.ERROR_RESPONSE)
+ {
+ // Fehlerfall
+ System.out.println("Bei der Erstellung der Signatur ist ein Fehler aufgetreten.");
+ }
+ else
+ {
+ // Signaturerstellung erfolgreich
+ System.out.println("Signaturerstellung erfolgreich:");
+
+ Element se = ser.getSignatureEnvironment();
+ System.out.println(DOMUtils.serializeNode(se));
+ }
+ }
+
+ /**
+ * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API.
+ *
+ * @param args Siehe @link CreateXMLSignature#main(String[]).
+ */
+ private static void init(String[] args)
+ {
+ if (args == null || args.length != 2)
+ {
+ System.out.println("Verwendung: CreateXMLSignature <MOASPSSConfigFile> <Log4JConfigFile>");
+ }
+ System.setProperty("moa.spss.server.configuration", args[0]);
+ System.setProperty("log4j.configuration", "file:" + args[1]);
+ }
+} \ No newline at end of file
diff --git a/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java
new file mode 100644
index 000000000..fed8ba9f2
--- /dev/null
+++ b/spss/handbook/clients/api/src/at/gv/egovernment/moa/spss/handbook/clients/api/VerifyXMLSignature.java
@@ -0,0 +1,147 @@
+package at.gv.egovernment.moa.spss.handbook.clients.api;
+
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.util.HashMap;
+
+import at.gv.egovernment.moa.spss.MOAException;
+import at.gv.egovernment.moa.spss.api.SPSSFactory;
+import at.gv.egovernment.moa.spss.api.SignatureVerificationService;
+import at.gv.egovernment.moa.spss.api.common.Content;
+import at.gv.egovernment.moa.spss.api.common.SignerInfo;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureInfo;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifySignatureLocation;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureRequest;
+import at.gv.egovernment.moa.spss.api.xmlverify.VerifyXMLSignatureResponse;
+
+/**
+ * Dieses einfache Beispiel demonstriert grundlegend den Gebrauch der API von MOA SP/SS.
+ * Es wird damit eine einfach aufgebaute XML-Signatur geprüft.
+ */
+
+public class VerifyXMLSignature
+{
+ /**
+ * Methode main.
+ *
+ * Enthält beispielhaften Code zum grundlegenden Gebrauch der API von MOA SP/SS.
+ * Es wird damit eine einfach aufgebaute XML-Signatur geprüft.
+ *
+ * ACHTUNG: Stellen Sie bei Verwendung von J2SE 1.4.x bzw. 5.x sicher, dass Sie die System-Property
+ * <code>java.endorsed.dirs</code> auf jenes Verzeichnis gesetzt haben, in dem sich die XPath-
+ * und XSLT-Bibliothek <em>Xalan-J</em> befindet.
+ *
+ * @param args <ul>
+ * <li>
+ * args[0] enthält einen Verweis auf die Konfigurations-Datei von MOA SP/SS Der Verweis
+ * enthält entweder eine absolute oder eine relative Pfadangabe, wobei eine relative
+ * Angabe als relativ zum Arbeitsverzeichnis der Java VM interpretiert wird.
+ * </li>
+ * <li>
+ * args[1] enthält einen Verweis auf die Konfigurations-Datei von Log4J, dem Logging-
+ * Framework, das von MOA SP/SS verwendet wird. Der Verweis enthält entweder eine
+ * absolute oder eine relative Pfadangabe, wobei eine relative Angabe als relativ zum
+ * Arbeitsverzeichnis der Java VM interpretiert wird.
+ * </li>
+ * <li>
+ * args[2] enthält Pfad und Dateiname des XML-Dokuments mit der darin enthaltenen, zu
+ * prüfenden XML-Signatur. Verwenden Sie z.B. das mit diesem Handbuch mitgelieferte
+ * Beispiel <code>clients/api/signatures/SimpleSignature.xml</code>.
+ * </li>
+ * </ul>
+ */
+ public static void main(String[] args)
+ {
+ // Setzen der System-Properties
+ init(args);
+
+ // Factory und Service instanzieren
+ SPSSFactory spssFac = SPSSFactory.getInstance();
+ SignatureVerificationService sigVerifyService = SignatureVerificationService.getInstance();
+
+ // Content aus Dokument mit zu prüfender Signatur erstellen
+ FileInputStream sigDocFIS = null;
+ try
+ {
+ sigDocFIS = new FileInputStream(args[2]);
+ }
+ catch (FileNotFoundException e1)
+ {
+ System.err.println("XML-Dokument mit zu prüfender Signatur nicht gefunden: " + args[2]);
+ System.exit(-1);
+ }
+ Content sigDocContent = spssFac.createContent(sigDocFIS, null);
+
+ // Position der zu prüfenden Signatur im Dokument angeben
+ // (Nachdem im XPath-Ausdruck ein NS-Präfix verwendet wird, muss in einer Lookup-Tabelle
+ // der damit bezeichnete Namenraum mitgegeben werden)
+ HashMap nSMap = new HashMap();
+ nSMap.put("dsig", "http://www.w3.org/2000/09/xmldsig#");
+ VerifySignatureLocation sigLocation = spssFac.createVerifySignatureLocation("//dsig:Signature", nSMap);
+
+ // Zu prüfendes Dokument und Signaturposition zusammenfassen
+ VerifySignatureInfo sigInfo = spssFac.createVerifySignatureInfo(sigDocContent, sigLocation);
+
+ // Prüfrequest zusammenstellen
+ VerifyXMLSignatureRequest verifyRequest = spssFac.createVerifyXMLSignatureRequest(
+ null, // Wird Prüfzeit nicht angegeben, wird aktuelle Zeit verwendet
+ sigInfo,
+ null, // Keine Ergänzungsobjekte notwendig
+ null, // Signaturmanifest-Prüfung soll nicht durchgeführt werden
+ false, // Hash-Inputdaten, d.h. tatsächlich signierte Daten werden nicht zurückgeliefert
+ "Test-Signaturdienste"); // ID des verwendeten Vertrauensprofils
+
+ VerifyXMLSignatureResponse verifyResponse = null;
+ try
+ {
+ // Aufruf der Signaturprüfung
+ verifyResponse = sigVerifyService.verifyXMLSignature(verifyRequest);
+ }
+ catch (MOAException e)
+ {
+ // Service liefert Fehler
+ System.err.println("Die Signaturprüfung hat folgenden Fehler geliefert:");
+ System.err.println("Fehlercode: " + e.getMessageId());
+ System.err.println("Fehlernachricht: " + e.getMessage());
+ System.exit(-1);
+ }
+
+ // Auswertung der Response
+ System.out.println();
+ System.out.println("Ergebnisse der Signaturprüfung:");
+ System.out.println();
+
+ // Besondere Eigenschaften des Signatorzertifikats
+ SignerInfo signerInfo = verifyResponse.getSignerInfo();
+ System.out.println("*** Ist Zertifikat des Signators qualifiziert? " + ((signerInfo.isQualifiedCertificate()) ? "ja" : "nein"));
+ System.out.println("*** Ist Zertifikat des Signators von einer Behörde? " + ((signerInfo.isPublicAuthority()) ? "ja" : "nein"));
+
+ // Ergebnisse von Signatur- und Zertifikatsprüfung
+ System.out.println();
+ System.out.println("Ergebniscode der Signaturprüfung: " + verifyResponse.getSignatureCheck().getCode());
+ System.out.println("Ergebniscode der Zertifikatsprüfung: " + verifyResponse.getCertificateCheck().getCode());
+
+ // Signatorzertifikat
+ System.out.println();
+ System.out.println("*** Zertifikat des Signators:");
+ System.out.println("Aussteller: " + signerInfo.getSignerCertificate().getIssuerDN());
+ System.out.println("Subject: " + signerInfo.getSignerCertificate().getSubjectDN());
+ System.out.println("Seriennummer: " + signerInfo.getSignerCertificate().getSerialNumber());
+ }
+
+ /**
+ * Setzt die notwendigen System-Properties für die Konfiguration der MOA SP/SS API.
+ *
+ * @param args Siehe @link VerifyXMLSignature#main(String[]).
+ */
+ private static void init(String[] args)
+ {
+ if (args == null || args.length != 3)
+ {
+ System.out.println("Verwendung: VerifyXMLSignature <MOASPSSConfigFile> <Log4JConfigFile> <XMLDocWithSignature>");
+ System.exit(-1);
+ }
+ System.setProperty("moa.spss.server.configuration", args[0]);
+ System.setProperty("log4j.configuration", "file:" + args[1]);
+ }
+} \ No newline at end of file