diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 10:58:37 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 10:58:37 +0000 |
commit | ece7d18cf35374bf4e26d041799cda8f791c89f8 (patch) | |
tree | 33707cb77627b65a2a4e7327a2e93fb7751c1b76 /common/data/test/xml/CreateXMLSignature/Req001.xml | |
parent | 273aed93c03b18a6c6bb1af745ae46a13ad3c7f2 (diff) | |
download | moa-id-spss-ece7d18cf35374bf4e26d041799cda8f791c89f8.tar.gz moa-id-spss-ece7d18cf35374bf4e26d041799cda8f791c89f8.tar.bz2 moa-id-spss-ece7d18cf35374bf4e26d041799cda8f791c89f8.zip |
Initial commit
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@2 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'common/data/test/xml/CreateXMLSignature/Req001.xml')
-rw-r--r-- | common/data/test/xml/CreateXMLSignature/Req001.xml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/common/data/test/xml/CreateXMLSignature/Req001.xml b/common/data/test/xml/CreateXMLSignature/Req001.xml new file mode 100644 index 000000000..bc8f976a0 --- /dev/null +++ b/common/data/test/xml/CreateXMLSignature/Req001.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Stephan Grill (Anecon) --> +<!-- Req001 shows a Req000 request extended with additional transformation information; +it must return a valid signature --> +<CreateXMLSignatureRequest xmlns="http://reference.e-government.gv.at/namespace/moa/20020822#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"> + <KeyIdentifier>validKeyIdentifier(RSAinPKCS12)</KeyIdentifier> + <SingleSignatureInfo SecurityLayerConformity="false"> + <!-- @todo wozu braucht man SingleSignatureInfo/@CreateSignatureManifest wenn in DataObjectInfo/@ChildOfManifest angegeben wird ob das Datenobjekt in das Manifest kommt oder nicht ? --> + <DataObjectInfo Structure="detached" ChildOfManifest="false"> + <DataObject> + <XMLContent>testdaten</XMLContent> + </DataObject> + <CreateTransformsInfoProfile> + <CreateTransformsInfo> + <dsig:Transforms> + <dsig:Transform Algorithm="http://www.w3.org/TR/1999/REC-xslt-19991116 "> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + <!--@todo HR the actual stylesheet--> + </xsl:stylesheet> + </dsig:Transform> + </dsig:Transforms> + <FinalDataMetaInfo> + <MimeType>text/xml</MimeType> + </FinalDataMetaInfo> + </CreateTransformsInfo> + </CreateTransformsInfoProfile> + </DataObjectInfo> + </SingleSignatureInfo> +</CreateXMLSignatureRequest> +<!--the following modifications (individually and in combination) must return a valid signature +* empty dsig:Transform element +* Transform/@Algorithm = "http://www.w3.org/TR/1999/REC-xpath-19991116" +* Transform/@Algorithm = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315" +* Transform/@Algorithm = "http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" +* Transform/@Algorithm = "http://www.w3.org/2001/10/xml-exc-c14n#" +* Transform/@Algorithm = "http://www.w3.org/2001/10/xml-exc-c14n#WithComments" +* Transform/@Algorithm = "http://www.w3.org/2000/09/xmldsig#enveloped-signature" +* 2 dsig:Transform elements +* Description: URI that resolves +* a Supplement/Content/XMLContent is available where Supplement/Content/@Reference is referenced from the content of dsig: Transform +* a Supplement/Content/XMLContent is available in a different DataObjectInfo where Supplement/Content/@Reference is referenced from the +content of dsig: Transform +* 2 Supplement elements +* CreateTransformsInfoID: validID +Total: 14 Testcases--> +<!--each of the following modifications (individually) must return an error code +* Transform/@Algorithm = "...xslt..." and Transform contains an XPath element +* Transform/@Algorithm = "...xpath..." and Transform contains an XSLT +* Description: URI that does not resolve +* an URI of a Transform parameter does not resolve and no Supplement object is available +* CreateTransformsInfoID: invalidID +Total: 5 Testcases--> |