diff options
Diffstat (limited to 'spss.server/data/test/xml/CreateXMLSignature/Req002.xml')
-rw-r--r-- | spss.server/data/test/xml/CreateXMLSignature/Req002.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/spss.server/data/test/xml/CreateXMLSignature/Req002.xml b/spss.server/data/test/xml/CreateXMLSignature/Req002.xml new file mode 100644 index 000000000..1fb5ea72d --- /dev/null +++ b/spss.server/data/test/xml/CreateXMLSignature/Req002.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Stephan Grill (Anecon) --> +<!--Req002 shows a Req000 request extended with CreateSignatureInfo data; +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> + <FinalDataMetaInfo> + <MimeType>text/xml</MimeType> + </FinalDataMetaInfo> + </CreateTransformsInfo> + </CreateTransformsInfoProfile> + </DataObjectInfo> + <CreateSignatureInfo> + <CreateSignatureEnvironment> + <XMLContent> + <Envelop>daten</Envelop> + </XMLContent> + </CreateSignatureEnvironment> + <CreateSignatureEnvironmentProfile> + <CreateSignatureLocation Index="0">/Envelop</CreateSignatureLocation> + </CreateSignatureEnvironmentProfile> + </CreateSignatureInfo> + </SingleSignatureInfo> +</CreateXMLSignatureRequest> + +<!--the following modifications (individually and in combination) must return a valid signature +* CreateSignatureEnvironment/@Reference = "validURI" +* CreateSignatureEnvironment/Base64Content: validBase64Data +* CreateSignatureInfo/Supplement/Content: valid @Reference and valid (XMLContent|Base64Content) +* 2 Supplement +* CreateSignatureEnvironmentProfileID: "validID" +Total: 5 Testcases--> +<!--each of the following modifications (individually) must return an error code +* CreateSignatureEnvironment/XMLContent: invalidXMLData +* CreateSignatureEnvironment/Base64Content: invalidBase64Data +* no CreateSignatureEnvironment/@Reference and no CreateSignatureEnvironment/(Base64Content|XMLContent) +* SignatureLocation: invalidXPathExpression +* CreateSignatureInfo/Supplement/Content: valid @Reference and invalid (XMLContent|Base64Content) +* CreateSignatureEnvironmentProfileID: "invalidID" +Total: 6 Testcases--> |