Path: blob/master/test/jdk/javax/xml/crypto/dsig/data/signature.xml
41154 views
<?xml version="1.0" encoding="UTF-8"?>1<!DOCTYPE Envelope [2<!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>3<!ENTITY c14n 'http://www.w3.org/TR/2001/REC-xml-c14n-20010315'>4<!ENTITY xpath 'http://www.w3.org/TR/1999/REC-xpath-19991116'>5<!ENTITY xslt 'http://www.w3.org/TR/1999/REC-xslt-19991116'>6<!ATTLIST Notaries Id ID #IMPLIED>7]>8<!-- Preamble -->9<Envelope xmlns:foo="http://example.org/foo" xmlns="http://example.org/usps">10<DearSir>foo</DearSir>11<Body>bar</Body>12<YoursSincerely>13<Signature xmlns="http://www.w3.org/2000/09/xmldsig#" Id="signature">14<SignedInfo>15<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />16<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1" />17<Reference URI="http://www.w3.org/TR/xml-stylesheet">18<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />19<DigestValue>60NvZvtdTB+7UnlLp/H24p7h4bs=</DigestValue>20</Reference>21<Reference URI="http://www.w3.org/Signature/2002/04/xml-stylesheet.b64">22<Transforms>23<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64" />24</Transforms>25<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />26<DigestValue>60NvZvtdTB+7UnlLp/H24p7h4bs=</DigestValue>27</Reference>28<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-1">29<Transforms>30<Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">31<XPath>32self::text()33</XPath>34</Transform>35</Transforms>36<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />37<DigestValue>zyjp8GJOX69990Kkqw8ioPXGExk=</DigestValue>38</Reference>39<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="">40<Transforms>41<Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">42<XPath xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">43ancestor-or-self::dsig:SignedInfo44and45count(ancestor-or-self::dsig:Reference |46here()/ancestor::dsig:Reference[1]) >47count(ancestor-or-self::dsig:Reference)48or49count(ancestor-or-self::node() |50id('notaries')) =51count(ancestor-or-self::node())52</XPath>53</Transform>54</Transforms>55<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />56<DigestValue>tQiE3GUKiBenPyp3J0Ei6rJMFv4=</DigestValue>57</Reference>58<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-2">59<Transforms>60<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64" />61</Transforms>62<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />63<DigestValue>zyjp8GJOX69990Kkqw8ioPXGExk=</DigestValue>64</Reference>65<Reference Type="http://www.w3.org/2000/09/xmldsig#Manifest" URI="#manifest-1">66<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />67<DigestValue>qg4HFwsN+/WX32uH85WlJU9l45k=</DigestValue>68</Reference>69<Reference Type="http://www.w3.org/2000/09/xmldsig#SignatureProperties" URI="#signature-properties-1">70<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />71<DigestValue>ETlEI3y7hvvAtMe9wQSz7LhbHEE=</DigestValue>72</Reference>73<Reference URI="">74<Transforms>75<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />76</Transforms>77<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />78<DigestValue>J/O0HhdaPXxx49fgGWMESL09GpA=</DigestValue>79</Reference>80<Reference URI="">81<Transforms>82<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />83<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />84</Transforms>85<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />86<DigestValue>J/O0HhdaPXxx49fgGWMESL09GpA=</DigestValue>87</Reference>88<Reference URI="#xpointer(/)">89<Transforms>90<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />91</Transforms>92<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />93<DigestValue>J/O0HhdaPXxx49fgGWMESL09GpA=</DigestValue>94</Reference>95<Reference URI="#xpointer(/)">96<Transforms>97<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />98<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />99</Transforms>100<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />101<DigestValue>MkL9CX8yeABBth1RChyPx58Ls8w=</DigestValue>102</Reference>103<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-3">104<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />105<DigestValue>yamSIokKmjA3hB/s3Fu07wDO3vM=</DigestValue>106</Reference>107<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#object-3">108<Transforms>109<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />110</Transforms>111<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />112<DigestValue>yamSIokKmjA3hB/s3Fu07wDO3vM=</DigestValue>113</Reference>114<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#xpointer(id('object-3'))">115<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />116<DigestValue>yamSIokKmjA3hB/s3Fu07wDO3vM=</DigestValue>117</Reference>118<Reference Type="http://www.w3.org/2000/09/xmldsig#Object" URI="#xpointer(id('object-3'))">119<Transforms>120<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />121</Transforms>122<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />123<DigestValue>419CYgyTWOTGYGBhzieWklNf7Bk=</DigestValue>124</Reference>125<Reference URI="#reference-2">126<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />127<DigestValue>VzK45P9Ksjqq5oXlKQpkGgB2CNY=</DigestValue>128</Reference>129<Reference Id="reference-1" URI="#manifest-reference-1">130<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />131<DigestValue>7/9fR+NIDz9owc1Lfsxu1JBr8uo=</DigestValue>132</Reference>133<Reference Id="reference-2" URI="#reference-1">134<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />135<DigestValue>qURlo3LSq4TWQtygBZJ0iXQ9E14=</DigestValue>136</Reference>137</SignedInfo>138<SignatureValue>139WvZUJAJ/3QNqzQvwne2vvy7U5Pck8ZZ5UTa6pIwR7GE+PoGi6A1kyw==140</SignatureValue>141<KeyInfo>142<RetrievalMethod Type="http://www.w3.org/2000/09/xmldsig#X509Data" URI="#object-4">143<Transforms>144<Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">145<XPath xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">146ancestor-or-self::dsig:X509Data147</XPath>148</Transform>149</Transforms>150</RetrievalMethod>151</KeyInfo>152<Object Id="object-1" MimeType="text/plain">I am the text.</Object>153<Object Encoding="http://www.w3.org/2000/09/xmldsig#base64" Id="object-2" MimeType="text/plain">SSBhbSB0aGUgdGV4dC4=</Object>154<Object Id="object-3">155<NonCommentandus xmlns=""><!-- Commentandum --></NonCommentandus>156</Object>157<Object>158<Manifest Id="manifest-1">159<Reference Id="manifest-reference-1" URI="http://www.w3.org/TR/xml-stylesheet">160<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />161<DigestValue>60NvZvtdTB+7UnlLp/H24p7h4bs=</DigestValue>162</Reference>163<Reference URI="#reference-1">164<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />165<DigestValue>qURlo3LSq4TWQtygBZJ0iXQ9E14=</DigestValue>166</Reference>167<Reference URI="#notaries">168<Transforms>169<Transform Algorithm="http://www.w3.org/TR/1999/REC-xslt-19991116">170<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/xhtml1/strict" exclude-result-prefixes="foo" version="1.0">171<xsl:output encoding="UTF-8" indent="no" method="xml" />172<xsl:template match="/">173<html>174<head>175<title>Notaries</title>176</head>177<body>178<table>179<xsl:for-each select="Notaries/Notary">180<tr>181<th>182<xsl:value-of select="@name" />183</th>184</tr>185</xsl:for-each>186</table>187</body>188</html>189</xsl:template>190</xsl:stylesheet>191</Transform>192<Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />193</Transforms>194<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />195<DigestValue>c7wq5XKos6RqNVJyFy7/fl6+sAs=</DigestValue>196</Reference>197</Manifest>198</Object>199<Object>200<SignatureProperties Id="signature-properties-1">201<SignatureProperty Target="#signature">202<SignerAddress xmlns="urn:demo"><IP>192.168.21.138</IP></SignerAddress>203</SignatureProperty>204</SignatureProperties>205</Object>206<Object Id="object-4">207<X509Data>208<X509SubjectName>209CN=Merlin Hughes,OU=X/Secure,O=Baltimore Technologies Ltd.,ST=Dublin,C=IE210</X509SubjectName>211<X509IssuerSerial>212<X509IssuerName>213CN=Transient CA,OU=X/Secure,O=Baltimore Technologies Ltd.,ST=Dublin,C=IE214</X509IssuerName>215<X509SerialNumber>1017788370348</X509SerialNumber>216</X509IssuerSerial>217<X509Certificate>218MIIDUDCCAxCgAwIBAgIGAOz46g2sMAkGByqGSM44BAMwbjELMAkGA1UEBhMCSUUx219DzANBgNVBAgTBkR1YmxpbjEkMCIGA1UEChMbQmFsdGltb3JlIFRlY2hub2xvZ2ll220cyBMdGQuMREwDwYDVQQLEwhYL1NlY3VyZTEVMBMGA1UEAxMMVHJhbnNpZW50IENB221MB4XDTAyMDQwMjIyNTkzMFoXDTEyMDQwMjIxNTkyNVowbzELMAkGA1UEBhMCSUUx222DzANBgNVBAgTBkR1YmxpbjEkMCIGA1UEChMbQmFsdGltb3JlIFRlY2hub2xvZ2ll223cyBMdGQuMREwDwYDVQQLEwhYL1NlY3VyZTEWMBQGA1UEAxMNTWVybGluIEh1Z2hl224czCCAbcwggEsBgcqhkjOOAQBMIIBHwKBgQDd454C+qcTIWlb65NKCt2PtguNpOSn225Id5woUigu7xBk2QZNAjVyIhMEfSWp8iR0IdKLx+JQLcNOrcn0Wwl5/hhW0MXsmlS2268dM5Cq2rtmDHooLxbGTPqtALE6vsXQCk5iLz3MtGh7gyQMZ7q7HT5a3I5NChUgY1227MMNQVetRA1susQIVAIQy3BStBjvx89Wq8Tjr7IDP1S8lAoGBAJ58e4W3VqMxm7Zx228YJ2xZ6KX0Ze10WnKZDyURn+T9iFIFbKRFElKDeotXwwXwYON8yre3ZRGkC+2+fiU2292bdzIWTT6LMbIMVbk+07P4OZOxJ6XWL9GuYcOQcNvX42xh34DPHdq4XdlItMR25N230A+OdZ4S8VVrpb4jkj4cyir1628kgA4GEAAKBgHH2KYoaQEHnqWzRUuDAG0EYXV6Q2314ucC68MROYSL6GKqNS/AUFbvH2NUxQD7aGntYgYPxiCcj94i38rgSWg7ySSz99MA232R/Yv7OSd+uej3r6TlXU34u++xYvRo+sv4m9lb/jmXyZJKeC+dPqeU1IT5kCybURL233ILZfrZyDsiU/vhvVozowODAOBgNVHQ8BAf8EBAMCB4AwEQYDVR0OBAoECIatY7SE234lXEOMBMGA1UdIwQMMAqACIOGPkB2MuKTMAkGByqGSM44BAMDLwAwLAIUSvT02iQj235Q5da4Wpe0Bvs7GuCcVsCFCEcQpbjUfnxXFXNWiFyQ49ZrWqn236</X509Certificate>237<X509Certificate>238MIIDSzCCAwugAwIBAgIGAOz46fwJMAkGByqGSM44BAMwbjELMAkGA1UEBhMCSUUx239DzANBgNVBAgTBkR1YmxpbjEkMCIGA1UEChMbQmFsdGltb3JlIFRlY2hub2xvZ2ll240cyBMdGQuMREwDwYDVQQLEwhYL1NlY3VyZTEVMBMGA1UEAxMMVHJhbnNpZW50IENB241MB4XDTAyMDQwMjIyNTkyNVoXDTEyMDQwMjIxNTkyNVowbjELMAkGA1UEBhMCSUUx242DzANBgNVBAgTBkR1YmxpbjEkMCIGA1UEChMbQmFsdGltb3JlIFRlY2hub2xvZ2ll243cyBMdGQuMREwDwYDVQQLEwhYL1NlY3VyZTEVMBMGA1UEAxMMVHJhbnNpZW50IENB244MIIBtzCCASwGByqGSM44BAEwggEfAoGBAN3jngL6pxMhaVvrk0oK3Y+2C42k5Kch2453nChSKC7vEGTZBk0CNXIiEwR9JanyJHQh0ovH4lAtw06tyfRbCXn+GFbQxeyaVLx2460zkKrau2YMeigvFsZM+q0AsTq+xdAKTmIvPcy0aHuDJAxnursdPlrcjk0KFSBjUw247w1BV61EDWy6xAhUAhDLcFK0GO/Hz1arxOOvsgM/VLyUCgYEAnnx7hbdWozGbtnFg248nbFnopfRl7XRacpkPJRGf5P2IUgVspEUSUoN6i1fDBfBg43zKt7dlEaQL7b5+JTZ249t3MhZNPosxsgxVuT7Ts/g5k7EnpdYv0a5hw5Bw29fjbGHfgM8d2rhd2Ui0xHbk0D250451nhLxVWulviOSPhzKKvXrbySADgYQAAoGAfag+HCABIJadDD9Aarhgc2QR3Lp7251PpMOh0lAwLiIsvkO4UlbeOS0IJC8bcqLjM1fVw6FGSaxmq+4y1ag2m9k6IdE0Qh5252NxB/xFkmdwqXFRIJVp44OeUygB47YK76NmUIYG3DdfiPPU3bqzjvtOtETiCHvo252534D6UjwPpYErXRUajNjA0MA4GA1UdDwEB/wQEAwICBDAPBgNVHRMECDAGAQH/AgEA254MBEGA1UdDgQKBAiDhj5AdjLikzAJBgcqhkjOOAQDAy8AMCwCFELu0nuweqW7Wf0s255gk/CAGGL0BGKAhRNdgQGr5iyZKoH4oqPm0VJ9TjXLg==256</X509Certificate>257</X509Data>258</Object>259</Signature>260</YoursSincerely>261<PostScript>bar</PostScript>262<Notaries xmlns="" Id="notaries">263<Notary name="Great, A. T." />264<Notary name="Hun, A. T." />265</Notaries>266<!-- Commentary -->267</Envelope>268<!-- Postamble -->269270271