BONDI widget’s digital signature is based on W3C Widget: Digital Signature specification. Both author and distributor signatures are supported. The signatures are stored in distinct files, which are needed for publishing the widget package on the Widget Gallery.
The BONDI Web SDK enables the developers to automatically generate the signature files for their widget.
Widget signature settings can be configured using the signing preference page. In order to change preferences:
The Signing preferences are stored in terms of signature profiles. Accordingly the signing preference page is divided in two groups
Profiles: In order to add new signing profile, select “Add” button(new profile) and give a profile name. Existing profiles can be removed using “Remove” button and the profile name can be edited using “Rename” button.
Profile Items: Each signature profile consists of a number of profile items, which are used to generate (upto one) author signatures and (any number of) distributor signatures. Generation of each signature file requires a public key certificate and a private key packaged in the PKCS 12 format. This key needs to be specified separately for each profile item.
The profile items group is further divided in two parts:
Author Signature One signing profile can be associated with at most one author profile item. The profile item specified in “Author signature” table will be used to generate author signature i.e author-signature.xml. Author profile item contents can be cleared using the “Clear” button.
Distributor Signature One signing profile can be associated with zero or more distributor profile items. In order to add distributor profile item select “Add” button. The distributor profile items can be removed using “Remove” button.
Every profile item is associated with an identifier which will be used in the generated signature files.
The identifier is generated according to a format string specified by the
user in the profile item.
The format string is expanded at the time the signature is generated to create the Identifier string.
The format string should be a text string, with a number of specific format tags that
expand based on parameters of the widget or signature profile.
The format tags supported are:
In order to validate a signed widget, you could try an experimental widget signature validator service online.