Use a code signing key to help protect packages and classes

Before you begin: You must have the internal code signing key, the external code signing key, or both code signing keys that Research In Motion provides. For more information about requesting code signing keys from RIM, visit www.blackberry.com/eng/developers/javaappdev/codekeys.jsp.
  1. Open Eclipse®.
  2. Open the project that contains the packages or classes that you want to control access to.
  3. In the Navigator view, double-click a .key file.
  4. To specify that the .key file is used to protect all public classes, select Use as default for public classes.
  5. To specify that the .key file is used to protect all non-public classes, select Use as default for non-public classes.
  6. Locate the name of the package that contains the packages and classes that the .key file protects.
  7. Expand the package contents.
  8. Select each element that requires access control.
  9. Click Ok.

Was this information helpful? Send us your comments.