source: TI12-security/trunk/python/Tests/foursuite_c14n/soapGetAttCertResponse.xml @ 5056

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/foursuite_c14n/soapGetAttCertResponse.xml@5056
Revision 5056, 6.7 KB checked in by pjkersha, 11 years ago (diff)

Testing 4Suite-XML's C14N implementation. This package contains an adapted version of the unit tests used to validate the ElementTree C14N. The 4Suite version fails on three tests but none of these are important for the requirement to support WS-Security: one test is using a complicated XPath, the other two tests fail because of undefined URNs in DOCTYPE elements. The 4Suite implementation should be suitable then for use with a ZSI based WS-Security signature handler. It should give better performance than the DOM based version and avoid PyXML incompatibilities for future Python 2.6 migration.

Line 
1<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ZSI="http://www.zolera.com/schemas/ZSI/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:Security SOAP-ENV:mustUnderstand="1"><wsse:BinarySecurityToken EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" wsu:Id="binaryToken" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">MIICBDCCAW2gAwIBAgIBNjANBgkqhkiG9w0BAQQFADAvMQwwCgYDVQQKEwNOREcxDTALBgNVBAsT
2BEJBREMxEDAOBgNVBAMTB1Rlc3QgQ0EwHhcNMDcxMjEyMTM1MjE2WhcNMDgxMjExMTM1MjE2WjBK
3MRowGAYDVQQKExFOREcgU2VjdXJpdHkgVGVzdDEPMA0GA1UECxMGU2l0ZSBBMRswGQYDVQQDExJB
4dHRyaWJ1dGVBdXRob3JpdHkwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKe1/6FTEUpfH8pj
5ctfL9Fhz/KqF8gszyH3lzXif9Z1KqHysrdXGRS7mC6OUSAIdp8jYCM1klmol8obtm5xiZFyddsJf
6Wo8gYpr5OWVshZ2xrnL8gX8OjYCg8wmdM0nZTUgF89Bds7lJ3j0699OLgKV2Tz3zvZEi7M+YsgNw
7XJ2BAgMBAAGjFTATMBEGCWCGSAGG+EIBAQQEAwIE8DANBgkqhkiG9w0BAQQFAAOBgQCePSXVXBO4
86o/1inn8PatfUTtIeOulPjQ/SO6MrUpOth33wQsh3kbq1HYOA5XaR+xK9BC4dF0sfUsZqMCoxKyB
9XjqkZOPJK9YDd8y7apmFkP742i8pN6usp7NfmSpSVD2nzRunLyjj4JFRpDdR2TKsPcwXc+a+80zZ
10d47xJYXtfA==
11</wsse:BinarySecurityToken><ds:Signature><ds:SignedInfo><ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="xsi xsd SOAP-ENV ds wsse ec"></ec:InclusiveNamespaces></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></ds:SignatureMethod><ds:Reference URI="#binaryToken"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="xmlns xsi xsd SOAP-ENV wsu wsse ns1"></ec:InclusiveNamespaces></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod><ds:DigestValue>HEzGrQ371OueXGowMbX7Cy6AAJs=</ds:DigestValue></ds:Reference><ds:Reference URI="#body"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces PrefixList="xmlns xsi xsd SOAP-ENV wsu wsse ns1"></ec:InclusiveNamespaces></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></ds:DigestMethod><ds:DigestValue>YlJNC7Du0i/Ixzj8V4RkLDVbhnQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>bbpJP+tT5zrBrgAMDxIENpmEX8ROidJmiVnQegD8uhVktksRc/6+cm5H6AumJu7bs73cTnMYxjIk
1272NwHq4PHuOGh+6hAMFe1UGwQ+vdT1dElLMiYQ4y2EnC0jWuiqIN5aQfXvOnorOtUq01ezNOitG+
13Zv9fUv5EwUa7Hx8ONsA=</ds:SignatureValue><ds:KeyInfo><wsse:SecurityTokenReference><wsse:Reference URI="#binaryToken"></wsse:Reference></wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body xmlns:ns1="urn:ndg:security:attAuthority" wsu:Id="body" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><ns1:getAttCertResponse><attCert>&lt;?xml version="1.0" encoding="utf-8"?&gt;
14&lt;attributeCertificate xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" targetNamespace="urn:ndg:security:attributeCertificate"&gt;
15    &lt;acInfo&gt;
16        &lt;version&gt;1.0&lt;/version&gt;
17        &lt;holder&gt;/CN=test/O=NDG/OU=BADC&lt;/holder&gt;
18        &lt;issuer&gt;/CN=AttributeAuthority/O=NDG Security Test/OU=Site A&lt;/issuer&gt;
19        &lt;issuerName&gt;Site A&lt;/issuerName&gt;
20        &lt;issuerSerialNumber&gt;54&lt;/issuerSerialNumber&gt;
21        &lt;userId&gt;/CN=test/O=NDG/OU=BADC&lt;/userId&gt;
22        &lt;validity&gt;
23            &lt;notBefore&gt;2008 02 15 11 39 52&lt;/notBefore&gt;
24            &lt;notAfter&gt;2008 02 15 19 39 52&lt;/notAfter&gt;
25        &lt;/validity&gt;
26        &lt;attributes&gt;
27            &lt;roleSet&gt;
28                &lt;role&gt;
29                    &lt;name&gt;staff&lt;/name&gt;
30                &lt;/role&gt;
31                &lt;role&gt;
32                    &lt;name&gt;postdoc&lt;/name&gt;
33                &lt;/role&gt;
34                &lt;role&gt;
35                    &lt;name&gt;undergrad&lt;/name&gt;
36                &lt;/role&gt;
37                &lt;role&gt;
38                    &lt;name&gt;coapec&lt;/name&gt;
39                &lt;/role&gt;
40            &lt;/roleSet&gt;
41        &lt;/attributes&gt;
42        &lt;provenance&gt;original&lt;/provenance&gt;
43    &lt;/acInfo&gt;
44&lt;ds:Signature&gt;&lt;ds:SignedInfo&gt;&lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"&gt;&lt;ec:InclusiveNamespaces PrefixList="ds"&gt;&lt;/ec:InclusiveNamespaces&gt;&lt;/ds:CanonicalizationMethod&gt;&lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"&gt;&lt;/ds:SignatureMethod&gt;&lt;ds:Reference URI=""&gt;&lt;ds:Transforms&gt;&lt;ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"&gt;&lt;/ds:Transform&gt;&lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"&gt;&lt;ec:InclusiveNamespaces PrefixList="xmlns"&gt;&lt;/ec:InclusiveNamespaces&gt;&lt;/ds:Transform&gt;&lt;/ds:Transforms&gt;&lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"&gt;&lt;/ds:DigestMethod&gt;&lt;ds:DigestValue&gt;kR1xK0gUhlCe0IDzi+yxN4Na5g8=&lt;/ds:DigestValue&gt;&lt;/ds:Reference&gt;&lt;/ds:SignedInfo&gt;&lt;ds:SignatureValue&gt;bIHxQFQLC7LbaZwJFBGtSbYvxnVCtZ0Ln04gOk6VZpqPOJzoKI7uLCbwDt9ROhJc+IbiNNrL+/xd
45COiBXEjKrL3MP6rhCNvAH5LjPrBXkflekIKruXO3wsEGXBnWw7Tb6fykzexCljZaM1hNm92YQjeK
46Z+uycVG5wtVaMeoEsNg=&lt;/ds:SignatureValue&gt;&lt;ds:KeyInfo&gt;&lt;ds:X509Data&gt;&lt;ds:X509Certificate&gt;MIICBDCCAW2gAwIBAgIBNjANBgkqhkiG9w0BAQQFADAvMQwwCgYDVQQKEwNOREcx
47DTALBgNVBAsTBEJBREMxEDAOBgNVBAMTB1Rlc3QgQ0EwHhcNMDcxMjEyMTM1MjE2
48WhcNMDgxMjExMTM1MjE2WjBKMRowGAYDVQQKExFOREcgU2VjdXJpdHkgVGVzdDEP
49MA0GA1UECxMGU2l0ZSBBMRswGQYDVQQDExJBdHRyaWJ1dGVBdXRob3JpdHkwgZ8w
50DQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKe1/6FTEUpfH8pjctfL9Fhz/KqF8gsz
51yH3lzXif9Z1KqHysrdXGRS7mC6OUSAIdp8jYCM1klmol8obtm5xiZFyddsJfWo8g
52Ypr5OWVshZ2xrnL8gX8OjYCg8wmdM0nZTUgF89Bds7lJ3j0699OLgKV2Tz3zvZEi
537M+YsgNwXJ2BAgMBAAGjFTATMBEGCWCGSAGG+EIBAQQEAwIE8DANBgkqhkiG9w0B
54AQQFAAOBgQCePSXVXBO46o/1inn8PatfUTtIeOulPjQ/SO6MrUpOth33wQsh3kbq
551HYOA5XaR+xK9BC4dF0sfUsZqMCoxKyBXjqkZOPJK9YDd8y7apmFkP742i8pN6us
56p7NfmSpSVD2nzRunLyjj4JFRpDdR2TKsPcwXc+a+80zZd47xJYXtfA==&lt;/ds:X509Certificate&gt;&lt;/ds:X509Data&gt;&lt;/ds:KeyInfo&gt;&lt;/ds:Signature&gt;&lt;/attributeCertificate&gt;</attCert></ns1:getAttCertResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
Note: See TracBrowser for help on using the repository browser.