XML Security Suite: Increasing the Security of E-Business
By Doug Tidwell2005-05-18
XML Signatures
The W3C and the IETF are currently working together on a proposal for XML-based digital signatures. The proposal defines a
<signature> element that contains all the information needed to process a digital signature. Each digital signature refers to one of three things: - An XML element contained inside the
<signature>element - An external XML document, referenced by a URI
- An external non-XML resource, referenced by a URI
Examples in this article show you how to create each of these resources. See the latest draft of the XML Signature proposal (see Resources) if you'd like to read all the gory details.
Color-coding our colorful coding Let us know what you think about these new and improved code listings. If you'd like to do this kind of thing yourself, see Resources for the appropriate links. |
To illustrate how XML Signatures work, I generated a signature file called signature.xml for the Shakespearean sonnet used for so many of my XML examples. (View it in HTML; you can also download this file.)
In the signature file, the signed element is the sonnet, contained inside the <dsig:Object> element. The actual signature is contained in the <SignatureValue> element, with the signer of the document indicated in the <X509Data> element.
Tutorial Pages:
» A brief overview of Web security
» Creating a secure session
» The XML Security Suite
» XML Signatures
» About the sample programs
» Creating a certificate
» Signing an internal XML resource
» Signing an external XML resource
» Signing a non-XML resource
» Verifying a digital signature
» The joys of nonrepudiability
» Canonical XML
» Element-level encryption
» Other utilities
» Summary
» Resources
First published by IBM DeveloperWorks
