13.08.2012 Views

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

ACTIONSCRIPT 3 Developer’s Guide en

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 48: XML signature validation in<br />

AIR<br />

Adobe AIR 1.5 and later<br />

Use the classes in the Adobe® AIR® XMLSignatureValidator API to validate digital signatures conforming to a subset<br />

of the W3C recomm<strong>en</strong>dation for XML-Signature Syntax and Processing (http://http://www.w3.org/TR/xmldsigcore/).<br />

XML signatures can be used to help verify the integrity and signer id<strong>en</strong>tity of data or information.<br />

XML signatures can be used to validate messages or resources downloaded by your application. For example, if your<br />

application provides services on a subscription basis, you could <strong>en</strong>capsulate the subscription terms in a signed XML<br />

docum<strong>en</strong>t. If someone attempted to alter the subscription docum<strong>en</strong>t, validation would fail.<br />

You could also use an XML signature to help validate downloaded resources used by your application by including a<br />

signed manifest containing digests of those resources. Your application could verify that the resources have not be<strong>en</strong><br />

altered by comparing the digest in the signed file with a digest computed from the loaded bytes. This is particularly<br />

valuable wh<strong>en</strong> the downloaded resource is a SWF file or other active cont<strong>en</strong>t that you want to run in the application<br />

security sandbox.<br />

Basics of XML signature validation<br />

Adobe AIR 1.5 and later<br />

For a quick explanation and code examples of validating XML signatures, see the following quick start articles on the<br />

Adobe Developer Connection:<br />

Creating and validating XML signatures (Flex)<br />

Creating and validating XML signatures (Flash)<br />

Adobe® AIR® provides the XMLSignatureValidator class and IURIDerefer<strong>en</strong>cer interface for validating XML<br />

signatures. The XML syntax accepted by the XMLSignatureValidator class is a subset of the W3C recomm<strong>en</strong>dation for<br />

XML Signature Syntax and Processing. (Because only a subset of the recomm<strong>en</strong>dation is supported, not all legal<br />

signatures can be validated.) AIR does not provide an API for creating XML signatures.<br />

XML signature validation classes<br />

Adobe AIR 1.5 and later<br />

The XML signature validation API includes the following classes:<br />

Last updated 6/6/2012<br />

855

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!