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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ACTIONSCRIPT</strong> 3.0 DEVELOPER’S GUIDE<br />

XML signature validation in AIR<br />

About XML signatures<br />

Adobe AIR 1.5 and later<br />

An XML signature is a digital signature repres<strong>en</strong>ted in XML syntax. The data in an XML signature can be used to<br />

validate that the signed information has not be<strong>en</strong> altered since signing. In addition, wh<strong>en</strong> a signing certificate has be<strong>en</strong><br />

issued by a trusted certification authority, the id<strong>en</strong>tity of the signer can be verified through the public key<br />

infrastructure.<br />

An XML signature can be applied to any type of digital data (in binary or XML format). XML signatures are typically<br />

used for such purposes as:<br />

checking whether external or downloaded resources have be<strong>en</strong> modified<br />

verifying that messages come from a known source<br />

validating application lic<strong>en</strong>se or subscription privileges<br />

Supported XML signature syntax<br />

Adobe AIR 1.5 and later<br />

AIR supports the following elem<strong>en</strong>ts from the W3C recomm<strong>en</strong>dation for XML Signature Syntax and Processing:<br />

All core signature syntax elem<strong>en</strong>ts (section 4 of the W3C recomm<strong>en</strong>dation docum<strong>en</strong>t)—except the KeyInfo<br />

elem<strong>en</strong>t is not fully supported<br />

The KeyInfo elem<strong>en</strong>t must only contain an X509Data elem<strong>en</strong>t<br />

An X509Data elem<strong>en</strong>t must only contain an X509Certificate elem<strong>en</strong>t<br />

The SHA256 digest method<br />

The RSA-SHA1 (PKCS1) signing algorithm<br />

The "Canonical XML without comm<strong>en</strong>ts" canonicalization method and transform<br />

The <strong>en</strong>veloped signature transform<br />

timestamps<br />

The following docum<strong>en</strong>t illustrates a typical XML signature (most of the cryptographic data has be<strong>en</strong> removed to<br />

simplify the example):<br />

Last updated 6/6/2012<br />

860

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

Saved successfully!

Ooh no, something went wrong!