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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/foursuite_c14n/soapGetAttCertResponse-Body-c14n.xml@5056
Revision 5056, 3.9 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:Body 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:ns1="urn:ndg:security:attAuthority" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wsu:Id="body"><ns1:getAttCertResponse><attCert>&lt;?xml version="1.0" encoding="utf-8"?&gt;
2&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;
3    &lt;acInfo&gt;
4        &lt;version&gt;1.0&lt;/version&gt;
5        &lt;holder&gt;/CN=test/O=NDG/OU=BADC&lt;/holder&gt;
6        &lt;issuer&gt;/CN=AttributeAuthority/O=NDG Security Test/OU=Site A&lt;/issuer&gt;
7        &lt;issuerName&gt;Site A&lt;/issuerName&gt;
8        &lt;issuerSerialNumber&gt;54&lt;/issuerSerialNumber&gt;
9        &lt;userId&gt;/CN=test/O=NDG/OU=BADC&lt;/userId&gt;
10        &lt;validity&gt;
11            &lt;notBefore&gt;2008 02 15 11 39 52&lt;/notBefore&gt;
12            &lt;notAfter&gt;2008 02 15 19 39 52&lt;/notAfter&gt;
13        &lt;/validity&gt;
14        &lt;attributes&gt;
15            &lt;roleSet&gt;
16                &lt;role&gt;
17                    &lt;name&gt;staff&lt;/name&gt;
18                &lt;/role&gt;
19                &lt;role&gt;
20                    &lt;name&gt;postdoc&lt;/name&gt;
21                &lt;/role&gt;
22                &lt;role&gt;
23                    &lt;name&gt;undergrad&lt;/name&gt;
24                &lt;/role&gt;
25                &lt;role&gt;
26                    &lt;name&gt;coapec&lt;/name&gt;
27                &lt;/role&gt;
28            &lt;/roleSet&gt;
29        &lt;/attributes&gt;
30        &lt;provenance&gt;original&lt;/provenance&gt;
31    &lt;/acInfo&gt;
32&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
33COiBXEjKrL3MP6rhCNvAH5LjPrBXkflekIKruXO3wsEGXBnWw7Tb6fykzexCljZaM1hNm92YQjeK
34Z+uycVG5wtVaMeoEsNg=&lt;/ds:SignatureValue&gt;&lt;ds:KeyInfo&gt;&lt;ds:X509Data&gt;&lt;ds:X509Certificate&gt;MIICBDCCAW2gAwIBAgIBNjANBgkqhkiG9w0BAQQFADAvMQwwCgYDVQQKEwNOREcx
35DTALBgNVBAsTBEJBREMxEDAOBgNVBAMTB1Rlc3QgQ0EwHhcNMDcxMjEyMTM1MjE2
36WhcNMDgxMjExMTM1MjE2WjBKMRowGAYDVQQKExFOREcgU2VjdXJpdHkgVGVzdDEP
37MA0GA1UECxMGU2l0ZSBBMRswGQYDVQQDExJBdHRyaWJ1dGVBdXRob3JpdHkwgZ8w
38DQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAKe1/6FTEUpfH8pjctfL9Fhz/KqF8gsz
39yH3lzXif9Z1KqHysrdXGRS7mC6OUSAIdp8jYCM1klmol8obtm5xiZFyddsJfWo8g
40Ypr5OWVshZ2xrnL8gX8OjYCg8wmdM0nZTUgF89Bds7lJ3j0699OLgKV2Tz3zvZEi
417M+YsgNwXJ2BAgMBAAGjFTATMBEGCWCGSAGG+EIBAQQEAwIE8DANBgkqhkiG9w0B
42AQQFAAOBgQCePSXVXBO46o/1inn8PatfUTtIeOulPjQ/SO6MrUpOth33wQsh3kbq
431HYOA5XaR+xK9BC4dF0sfUsZqMCoxKyBXjqkZOPJK9YDd8y7apmFkP742i8pN6us
44p7NfmSpSVD2nzRunLyjj4JFRpDdR2TKsPcwXc+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>
Note: See TracBrowser for help on using the repository browser.