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:
- Trusted. A MIDlet suite with a JAR file that is both signed with a certificate
chain that the device can verify and has not been tampered with.
- Untrusted. A MIDlet suite for which the origin and the
integrity of the JAR file cannot be trusted by the device (for example, unsigned
MIDlet suites).
- Minimum. A
security domain where all permissions to protected APIs are denied, including
access to push functionality and network protocols.
- Maximum. The equivalent to Trusted.
You can set the security
domain for a MIDlet suite:
- For regular (local) execution.
- To be exported to an emulator platform and for execution with OTA provisioning.
To set the security domain for regular execution:
- Choose File > <active
project name> Properties.
- In the Project Properties dialog, select Running.
- In the Running properties page,
Choose the Regular Execution radio button.
- 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:
- Choose File > <active
project name> Properties.
- In the Project Properties dialog, select Build > Signing.
- Check
the Sign Distribution checkbox.
- Select a keystore and alias (key pair).
- Click the Export Key into Java ME SDK/Platform/Emulator button.
- In the Export Key dialog:
- Select the emulator platform,
- Select the security domain,
- 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