Security - SignedMIDlet

Description

This example shows you how to create a MIDlet that calls a protected method (in this case, a network operation). If the MIDlet is not properly signed, the protected method call causes the MIDlet to display a security prompt to the user. The following figure shows the security prompt that is displayed when an unsigned MIDlet attempts to send or receive network data.

Figure: SignedMIDlet security prompt

For a tutorial that shows you how to create this MIDlet, see section Example: Using protected methods.

Compatibility

This MIDlet is compatible with Series 40 2nd Edition and S60 2nd Edition FP2 devices and newer.

This MIDlet has been tested on the following device:

  • Nokia Asha 305 (Java Runtime 2.0.0 for Series 40)

  • Nokia X3-02 (Series 40 6th Edition FP1)

MIDlet project

The MIDlet project files are packaged as a zip file. To download the zip file, click the following link:

Download SignedMIDlet

Table: MIDlet details

MIDlet version

1.1

Creation date

25 May 2012

IDE

Eclipse and NetBeans

SDK

Nokia SDK 1.1 for Java

MIDlet classes

The MIDlet consists of the following class (click to view the full source code):