Protect APIs using code signing keys
- After you receive an internal key, an external key, or both keys, in the BlackBerry® Integrated Development Environment, open the project that contains the APIs that you want to control access to.
- In the Workspace window, right-click the project file.
- Click Add File to Project.
- In the Look In field, browse to C:\Program Files\Research In Motion\BlackBerry Password Based Code Signing Authority\data or the location where the .key file is saved.
- Perform one of the following tasks:
| Option |
Description |
Use an internal key
|
- Select the internal .key file, for example, the ACMI.key file.
- Click Open.
- In the Workspace window, double click the .key file.
- Select the Use as default for public classes option and
Use as default for non-public classes settings.
- Click OK.
- In the Workspace window, right-click the project file.
- Click Add File to Project.
- In the Look In field, browse to C:\Program Files\Research In Motion\BlackBerry Password Based Code Signing Authority\data.
|
Use an external key
|
- Select the external .key file, for example, the RSAE.key file.
- Click Open.
- In the Packages and classes protection window, find the name of the package that contains the sensitive API items.
- Expand the package contents.
- Select each API element that requires access control.
|
- Click Ok.
- Re-compile the project.
Was this information helpful? Send us your comments.