Setting the Security Domain

See Also

The Java ME platform uses security domains to restrict an application's access to protected APIs. Devices use signing information to check an application's source and validity before allowing it to access protected APIs.

Although the security domains available vary from device to device, the following security domains are supported by the IDE and the Sun Java Wireless Toolkit:

You can set the security domain for a MIDlet suite:

To set the security domain for regular execution:

  1. Choose File > <active project name> Properties.
  2. In the Project Properties dialog, select Running.
  3. In the Running properties page, Choose the Regular Execution radio button.
  4. Check the Specify the Security Domain checkbox and choose a security domain from the drop-down menu.

To set the security domain for export to an emulator platform or for execution with OTA provisioning:

  1. Choose File > <active project name> Properties.
  2. In the Project Properties dialog, select Build > Signing.
  3. Check the Sign Distribution checkbox.
  4. Select a keystore and alias (key pair).
  5. Click the Export Key into Java ME SDK/Platform/Emulator button.
  6. In the Export Key dialog:
    1. Select the emulator platform,
    2. Select the security domain,
    3. Click the Export button.
See Also
Setting Security through MIDlet Signing
About MIDP Signing and Security
Adding or Creating a Keystore
Exporting a Key to an Emulator Platform

Legal Notices