Home > Store

Secure XML: The New Syntax for Signatures and Encryption

Register your product to gain access to bonus material or receive a coupon.

Secure XML: The New Syntax for Signatures and Encryption

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2003
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-75605-6
  • ISBN-13: 978-0-201-75605-0

Extensible Markup Language (XML) is the environment of choice for creating many of today's technologically sophisticated and security-sensitive Web applications. With Secure XML, developers now have the hands-on guide they need to combine a strong foundation in XML with proven, practical techniques for enabling the secure transmission of data across the Web.

Broad-based and comprehensive, Secure XML fully documents every feature and issue involved with XML security. Opening with a complete introduction to XML, the book then provides detailed coverage of authentication, canonicalization, keying, encryption, algorithms, and more. Notes, background information, guidelines, and "soapbox," or heretical comments, expand on the book's practical focus throughout. In all, this book features the most comprehensive roadmap to digital security and XML encryption available.

Topics covered in-depth include:

  • XML basics—documents, namespaces, structures, DTDs and schemas, and stylesheets
  • XPath, XPointer, and SOAP
  • Digital cryptography basics--secret and public key ciphers, asymmetric keys, digital signatures, and certificates
  • XML canonicalization, signatures, and authentication
  • XML encryption
  • Key management and combining encryption with signatures
  • Cryptographic algorithms and noncryptographic algorithms

Detailed and practical, this book provides reliable solutions for securing XML and for safeguarding information flow across today's sophisticated Web.



0201756056B06262002

Sample Content

Online Sample Chapter

Digital Cryptography: A Subtle Art

Downloadable Sample Chapter

Click below for Sample Chapter(s) related to this title:
Sample Chapter 2

Table of Contents



Preface.


Notations.


Acknowledgments.

I. INTRODUCTION.

1. XML and Security.

XML.

Origins of XML.

XML Goals.

Advantages and Disadvantages of XML.

Uses of XML.

The Need for Secure XML.

Status of XML Security Standardization.

Work in Progress.

2. Digital Cryptography Basics.

Message Digests.

Message Authentication Codes.

Secret or Symmetric Key Ciphers.

Public or Asymmetric Key Ciphers.

Asymmetric Keys and Authentication.

Digital Signatures.

Certificates.

Enveloped Encryption.

Canonicalization.

Randomness.

Other Facets of Security.

Cryptography: A Subtle Art.

II. XML BASICS.

3. The Extensible Markup Language.

Related Standards and Recommendations.

XML Documents.

XML Parsing Process.

Well-Formed Documents.

Valid XML Documents.

XML Document Structure.

XML Document Logical Structure.

The XML Declaration.

Elements.

Attributes.

Special Attributes xml:space and xml:lang.

CDATA Sections.

Comments.

Character Sets and Encoding.

Processing Instructions.

XML Namespaces.

Namespace Declarations.

Using Qualified Names.

Namespace Guidelines.

XML Document Physical Structure.

General and Parameter Entities.

Internal and External Entities.

Entity References.

XML and Stylesheets.

Cascading Style Sheets.

Extensible Stylesheet Language.

XSL Versus CSS.

4. XML Document Type Definitions.

Introduction to DTDs.

Document Type Declarations.

Document Type Declaration Format.

Document Type Declaration Guidelines.

Conditional Sections.

Element Type Declarations.

Element Structures.

Element Content Models.

Frequency Indicators.

Multiple Elements Within an Element.

General Guidelines for Element Type Declarations.

Defining Attributes in DTDs.

Attribute Types.

Attribute Defaults.

Entity Reference Declarations.

Internal General Entity Reference Declarations.

Parameter Entity Reference Declarations.

Notation Declarations.

5. XML Schema.

Overview.

Types.

simpleType.

complexType.

Elements and Attributes.

Namespaces.

Miscellaneous Aspects of Schemas.

Parts Not Covered.

6. XPath: A Basic Building Block.

Introduction to XPath.

Data Model.

Root Nodes.

Element Nodes.

Attribute Nodes.

Namespace Nodes.

Text Nodes.

Processing Instruction Nodes.

Comment Nodes.

Location Paths.

Location Steps.

Axes.

Node Tests.

Predicates.

Abbreviated Notation.

Expressions.

Function Calls.

Operators.

Function Library.

Node-Set Functions.

String Functions.

Boolean Functions.

Number Functions. 7. URIs, xml:base, and XPointer.

URIs.

URI Syntax.

Relative URIs.

URI References and Fragment Specifiers.

URI Encoding.

xml:base.

XPointer.

Forms of XPointer.

The XPath Extensions.

XPointer Functions.

8. SOAP.

Introduction to SOAP.

Features Included and Excluded.

Relation of SOAP to XML.

Basic SOAP Namespaces.

SOAP Envelope, Message Exchange, and Processing Model.

SOAP Messages.

SOAP Actors.

SOAP Processing.

SOAP Faults.

SOAP Envelope and Fault Schemas.

SOAP Encoding.

The encodingStyle Attribute.

The http://www.w3.org/2001/12/soap-encoding Encoding.

SOAP Transport Binding and HTTP.

Transport Message Exchange Patterns.

The SOAP HTTP Binding.

SOAP Remote Procedure Call.

SOAP HTTP Remote Procedure Call.

Remote Procedure Call Faults.

Remote Procedure Call Schema.

Mapping Application Parameter Names into XML.

III. CANONICALIZATION AND AUTHENTICATION.

9. XML Canonicalization: The Key to Robustness.

Canonicalization-Essential for Signatures Over XML.

Some Simple Aspects of XML Canonicalization.

The Problems with XML White Space.

The Problems with XML Namespaces.

Canonicalization Is Required for XML Data.

Canonical XML and XML Encryption.

Transformative Summary.

Input/Read Rules.

Output/Print Rules.

Inherited Attribute and Namespace Declaration Rules.

The XML Canonicalization Data Model.

Node-Set.

Document Order.

Alphabetic Order for Namespaces and Attributes.

Formal Generative Specification.

The Root Node.

Element Nodes.

Attribute Nodes.

Namespace Nodes.

Text Nodes.

Processing Instruction Nodes.

Comment Nodes.

Limitations of XML Canonicalization.

Application Equivalences.

Character Normalization.

Operational Nonequivalence.

Exclusion/Inclusion of Ancestor Namespace Declarations and xml Namespace Attributes.

10. XML Signatures and Authentication.

Introduction to XML Digital Signatures.

XML Signature Syntax.

The Signature Element.

The SignedInfo Element.

The Reference Element.

The SignatureValue Element.

The KeyInfo Element.

The Object Element.

The Manifest Element.

The SignatureProperties Element.

Comments and Processing Instructions.

XML Signature Examples.

Simple Protocol Example.

Simple Document Example.

More Complex Protocol Example.

More Complex Form Example.

Transforms and the Use of XPath.

The “XPath” Data Model.

Dereferencing the URI.

The Data Pipeline.

Transforms Element Syntax.

Processing Rules.

Signature Generation.

Signature Verification.

Security of Signatures.

Transforms.

Check the Signature Security Model.

Signature Strength.

Algorithms and Executable Content Caution.

11. Profiling XMLDSIG for Applications.

P3P XMLDSIG.

Linkage of XMLDSIG to P3P Semantics.

Specific Assurance Syntax.

P3P XMLDSIG Use.

Limitations.

SOAP XMLDSIG.

Processing Rules.

SOAP Signature Example.

12. ETSI “Advanced” XML Signatures.

Levels of XAdES Signature.

XAdES.

XAdES-T.

XAdES-C.

XAdES-X.

XAdES-XL.

XAdES-A.

XAdES Signature Syntax Basics.

Qualifying and Qualifying Reference Properties.

Signed and Unsigned Properties.

Basic Elements.

XAdES Signature Elements Syntax.

The SigningTime Element.

The SigningCertificate Element.

The SignaturePolicyIdentifier Element.

The CounterSignature Element.

The DataObjectFormat Element.

The CommitmentTypeIndication Element.

The SignatureProductionPlace Element.

The SignerRole Element.

The AllDataObjectsTimeStamp and IndividualDataObjectsTimeStamp Element.

Validation Data Syntax.

The SignatureTimeStamp Element.

The CompleteCertificateRefs Element.

The CompleteRevocationRefs Element.

The SigAndRefsTimeStamp Element.

The RefsOnlyTimestamp Element.

The CertificateValues Property Element.

The RevocationValues Property Element.

The XAdESArchiveTimestamp Element.

IV. KEYING.

13. The KeyInfo Element.

The KeyValue Element.

The DSAKeyValue Element.

The RSAKeyValue Element.

The DHKeyValue Element.

The EncryptedKey Element.

The RetrievalMethod Element.

The AgreementMethod Element.

The KeyName Element.

The X509Data Element.

Distinguished Name Encoding.

X509Data Syntax.

PKCS7signedData Element.

OCSP Tokens.

The PGPData Element.

The SPKIData Element.

The MgmtData Element.

14. XKMS: XML Key Management.

The Key Information Service.

X-KISS Services.

Locate Service.

Validate Service.

XKMS Common Data Elements.

The Key Registration Service.

X-KRSS Service.

X-KRSS Register Messages.

Bulk Registration Services.

XKMS Cryptographic Algorithms.

Shared Secret Data.

Registration of User-Generated Keys.

Registration of Server-Generated Keys.

Security Considerations.

V. ENCRYPTION.

15. XML Encryption.

Introduction to XML Encryption.

Why Another Encryption Syntax?

Encryption Granularity.

Enveloping and Detached Encryption.

XML Encryption Syntax.

The EncryptedType.

The CipherData Element.

The EncryptionProperties Element.

The EncryptedData Element.

The EncryptedKey Element.

The ReferenceList Element.

Extensions to the ds:KeyInfo Element.

Encryption Examples.

Encrypting XML Elements.

Encrypting XML Element Content.

Encrypting Arbitrary Data.

Super-Encryption.

Referenced EncryptedKey.

Processing Flow.

Encryption.

Decryption.

XML Encryption.

Encryption Security Considerations.

Combining XMLDSIG and XML Encryption.

Information Revealed.

Care with Algorithms and Expressions.

16. Combining Encryption and Signature.

General Considerations.

Encryption of Signed Data and Signature.

Encryption of Signed Data But Not Signature.

Signing Encrypted Data.

The Decryption Transform.

Introduction to the Decryption Transform.

Decryption Transform Syntax.

Decryption Transform Processing.

Decryption Transform Limitations.

VI. ALGORITHMS 381 17. Overview of Algorithms.

Algorithm Syntax.

Algorithmic Roles.

AgreementMethod.

CanonicalizationMethod.

DigestMethod.

EncryptionMethod.

SignatureMethod.

Transform.

18. Cryptographic Algorithms.

Message Digests.

MD5.

SHA-1.

Additional SHA Versions.

RIPEMD-160.

Key Agreement Algorithms.

Diffie-Hellman Key Agreement.

Message Authentication Codes.

HMAC SHA-1.

Additional HMAC Variations.

Signature Algorithms.

DSA.

RSA-SHA1.

Additional RSA Variations.

Block Encryption Algorithms.

Triple DES.

AES.

Stream Encryption Algorithms.

ARCFOUR.

Key Transport Algorithms.

RSA Version 1.5.

RSA-OAEP.

Symmetric Key Wrap Algorithms.

CMS Key Checksum.

Triple DES Key Wrap.

AES Key Wrap.

19. Non-cryptographic Algorithms.

Canonicalization Algorithms.

Canonical XML.

Exclusive XML Canonicalization.

Minimal Canonicalization.

Transformation Algorithms.

Canonicalization.

Base-64 Decoding.

XPath Filtering.

Enveloped Signature Transform.

XSLT Transform.

XPointer.

XML Schema Validation.

Decryption Transform.

APPENDIXES.

Appendix A XML Security Implementations.

Apache.

Baltimore Technologies.

Capslock.

Done Information.

DSTC.

Entrust.

Fujitsu.

GapXse.

HP Web Services.

IAIK.

IBM.

Infomosaic.

JDSS II.

Mather.

Microsoft.

NEC.

Phaos Technology.

Poupou.

RSA Security.

Siggen.

Verisign.

W3C.

WebSig.

Wedgetail.

XML Sec.

Appendix B The W3C and W3C Documents.

Access to W3C Documents.

W3C Document Status.

W3C Document Format.

W3C Document Disclaimer.

W3C Software Disclaimer.

Appendix C The IETF and IETF Documents.

RFC Status.

Access to RFCs.

RFC Format.

Appendix D The NIST and NIST Documents.

Access to NIST FIPS Documents.

Status of NIST Documents.

Format of FIPS.

Appendix E The Paper and Protocol Points of View.

The Basic Points of View.

Questions of Meaning.

Core Meaning.

Adjunct Meaning.

Processing Models.

Amount of Processing.

Granularity of Processing.

Extensibility of Processing.

Security and Canonicalization.

Canonicalization.

Digital Authentication.

Canonicalization and Digital Authentication.

Encryption.

Unique Internal Labels.

Examples.

Resolution of the Points of View. Appendix F SOAP Encoding Schema.

References and Acronyms.
Index. 0201756056T07152002

Preface

Secure XML explains the guts of XML Digital Signatures and XML Encryption and how you, as a designer, implementer, or evaluator of an XML application, can make use of these technologies.

The Extensible Markup Language (XML) is rapidly becoming the new standard in application level computer communications. As its use widens, mechanisms to assure that XML documents and messages are authentic and can be communicated confidentially, become essential.

Material provided in this book minimizes needed pre-requisite knowledge, although it requires general familiarity with computer concepts. For the reader not familiar with digital security or cryptology concepts, Part I includes a chapter covering these topics in the depth needed to understand the remainder of the book. For the reader not familiar with XML, Part II provides in depth coverage of XML and related standards. This XML material provides not just the background needed for the rest of this book, but sufficiently general coverage that it should be helpful in understanding most XML applications and systems. Readers with sufficient knowledge in the areas covered can skip or skim these background parts.

After the introductory and background material in Parts I and II, the topics of XML Digital Signatures, XML Encryption, and XML Canonicalization are covered in depth. This includes specific formats and examples and covers keying material, combined use of signature and encryption, algorithms, and profiling of signature use for particular applications. If your interest is only in XML Digital Signatures or XML Encryption can skip the Chapters associated with the other topic. But any non-trivial use of XML Security will require some familiarity with XML Canonicalization, keying information, and the relevant algorithms.Using this book, a skilled reader can design and implement interoperable XML based authentication and/or confidentiality mechanisms for their particular applications.

This book is firmly based on the official adopted standards of the World Wide Web Consortium, Internet Engineering Task Force, and other relevant standards bodies when available. Material going beyond that is based on the most recent drafts or informational documents available at the time of writing and the personal knowledge and experiences of the authors.

In general, areas of XML Security are presented by giving an informal syntax with a skeletal example, followed by the formal syntax and then a number of more complete examples. The material is organized so that the formal syntax and complete examples can be read in either order.

Throughout the book, notes are included that might be of interest to the reader, where the authors either have some particular knowledge of the history involved or have some heretical opinion.



0201756056P03212002

Index

Click below to download the Index file related to this title:
Index

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020