Specifications
205ADOBE FLEX 3
Building and Deploying Adobe Flex 3 Applications
You can also use digests for standard RSLs. This is useful if you update your RSLs frequently, and want to ensure
that the application loads the latest RSL.
To create a digest while compiling a library, you set the compute-digest compiler option to true. You can set
this value in the flex-config.xml file, as the following example shows:
<compute-digest>true</compute-digest>
The default value of the compute-digest option is true.
In Flex Builder, to disable digests, you must add the following to the Additional Compiler Arguments field in the
Flex Library Compiler dialog box:
-compute-digest=false
The compiler writes the digest inside the swc/library/libraries/digests element of the RSL’s catalog.xml
file. The following example shows the structure of
digest elements, which are optional children of the digests
element in the catalog.xml file:
<digests>
<digest type="SHA-256" signed="true"
value="d604d909d8d6d358097cf2f4ebf4707faf330469ed6b41dcdc5aaf6f4dd3bea9" />
<digest type="SHA-256" signed="false"
value="d604d909d8d6d358097cf2f4ebf4707faf330469ed6b41dcdc5aaf6f4dd3bea9" />
</digests>
The following table describes the tag and its attributes:
When you compile your production application with an RSL that uses a digest for verification, set the
verify-
digests
compiler option to true to indicate that the application must check the digest before using the RSL. The
default value of this option is
true.
If you have multiple RSLs, such as a main RSL plus a failover RSL, the compiler stores multiple digests inside the
application.
The Flex compiler uses the SHA-256 digest algorithm from the java.security libraries to generate the digest.
Option Description
digest
Optional child of digests element.
signed
Whether the library is signed or not. This value is true if the digest is of a signed library and false otherwise. Only
Adobe can create signed libraries. This attribute is required.
type
The kind of hash used to create the digest. The only currently-supported value is "SHA-256". This attribute is required.
value
The hash of the specified type. This is the digest of the RSL associated with the catalog.xml. This attribute is required.










