Sunday February 05 , 2012

Zarqon AIR Demo

Lets see how easy it is to secure your AIR desktop application with Zarqon so that it will only run when the required license holder information is supplied, and expose enabled features.

Step 1 - Create a Product

Using the Zarqon License Control Center, we can quickly create a Product to be licensed.

The demo will have three features called 'This', 'That' and 'The Other'. For this demo, we also created a Feature Set called 'This and That' which contains the features 'This' and 'That' but not 'The Other'.

Learn more about creating Products.

Zarqon AIR Demo - Product Details

 

Step 2 - Issue a License for this Product.

Issuing a License for a Product with Feature Sets extremely fast, since you usually just choose the appropriate Feature Set and go.

You can actually add multiple Feature Sets to a License, but they must be mutually exclusive (not contain any overlapping Features), which the software detects and won't let you do.

Learn more about issuing Licenses.

Zarqon AIR Demo - License Details

 

Step 3 - Write an AIR Application that uses the License.

The following is the salient portion of the code that validates the license and further enables or disables Features based on the License.

View the Source Code for the AIR Demo.

Zarqon AIR Demo - Code

 

Step 4 - View the Licensed Application

Run the application on the desktop and see that it works.

Note that the License details show the Feature Set 'This and That' is enabled and it contains the Features named 'This' and 'That'.

Contrast this to the Flex demo, where we define the same Features but License them individually.

The source code handles the feature enablement in the same way for both demos. Thus, the application code only needs to test for individual Features and doesn't need to be concerned with the Feature Set.

Zarqon AIR Demo - Valid License

 

Step 5 - Test Disabling the License

Disable the license from the Zarqon Desktop Control Center.

When you select a License from the License Holder's list of Licenses, you'll see a red 'Revoke License' icon to the top right beside the pencil icon for editing the License. If you revoke the License this way, it doesn't open the Edit License Details dialog, it just disables it. You can also edit the License and uncheck the 'enabled' checkbox in the License details. Either way, once you revoke the License, save the License Holder

Zarqon AIR Demo - License Disabled

 

Step 6 - View the Disabled Application

Run the application again and see that it is disabled.

Zarqon AIR Demo - App Disabled

 

Step 7 - Test Expiring the License

Re-enable the license, but set the license expiry date to the current date.

For this test, you will have to wait at least one day after you issue the license, since the interface will allow you to set the expiry to any date after license issue date but not the issue date itself.

Zarqon AIR Demo - License Expiry


Step 8 - View the Expired Application

Run the application and see that all the features are disabled and the license is reported as expired.

Zarqon AIR Demo - App Expired

 

Zarqon AIR Demo

Zarqon AIR Demo

Zarqon Flex Demo

Zarqon Flex Demo

Did You Know...

AES Encryption is Strong Enough for Government Work

In June 2003, the US Government announced that AES encryption (the cipher used by Zarqon to encrypt license data) may be used to protect classified information:

"The design and strength of all key lengths of the AES algorithm (i.e., 128, 192 and 256) are sufficient to protect classified information up to the SECRET level."

Believe It or Not...

Amazon S3 is Reliable Enough for Wall Street

"Nasdaq stores many terabytes of  NYSE, Nasdaq and Amex data in Amazon’s storage cloud," according to Claude Courbois, associate VP, product development.

"Nasdaq adds 30 to 80 gigabytes of data every day to the cloud, about 300,000 flat files, each representing 10 minutes’ worth of trading activity on a stock.”