[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Debugging Transformed output
Hi Konrad, From your question this morning, is this what you are looking for ? These 2 examples dump the post-Transform pre-digest state. To prove that it works, I removed the base64 Transform in the 2nd example to see what got dumped. Looks good. This should be able to trap existence or non-existence of inherited namespaces. Cheers, Ed Example 1 - with 3 Transforms <dsig:Transforms> <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64"/> <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </dsig:Transforms> == PreDigest data - start buffer: <books> <book category="fiction"> <author>Herman Melville</author> <title>Moby Dick</title> <price>8.99</price> </book> <book category="fiction"> <author>J. R. R. Tolkien</author> <title>The Lord of the Rings</title> <price>22.99</price> </book> </books> == PreDigest data - end buffer == Result - start buffer: S3rHaxX4KKuk+0VpIJL5k8E+SGA= == Result - end buffer Example 1 - with 2 Transforms (intermediate base64 removed. <dsig:Transforms> <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> <dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </dsig:Transforms> == PreDigest data - start buffer: <Envelope xmlns="urn:envelope"> <Data>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxib29rcz4NCgk8Ym 9vayBjYXRlZ29yeT0iZmljdGlvbiI+DQoJCTxhdXRob3I+SGVybWFuIE1lbHZpbGxlPC9hdXRob3 I+DQoJCTx0aXRsZT5Nb2J5IERpY2s8L3RpdGxlPg0KCQk8cHJpY2U+OC45OTwvcHJpY2U+DQoJPC 9ib29rPg0KCTxib29rIGNhdGVnb3J5PSJmaWN0aW9uIj4NCgkJPGF1dGhvcj5KLiBSLiBSLiBUb2 xraWVuPC9hdXRob3I+DQoJCTx0aXRsZT5UaGUgTG9yZCBvZiB0aGUgUmluZ3M8L3RpdGxlPg0KCQ k8cHJpY2U+MjIuOTk8L3ByaWNlPg0KCTwvYm9vaz4NCjwvYm9va3M+DQoNCg==</Data> </Envelope> == PreDigest data - end buffer == Result - start buffer: tgmF++l+O1SkMwQcPk+NshkKlYU= == Result - end buffer
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]