MIDlet Signing
J2ME Security Architecture is driven from Java Sandbox Architecture. J2ME represents two level of securities:-
- Low Level KVM Security
- Application Level Security
Low Level KVM Security is divided into two steps:
- Pre-verification performs certain checks on the Java bytecodes using preverify tool, if first level of verification is passed, then preverifier add special stack map attributes into class files to facilitate runtime in-device verification. Note that preverified class files with the special attribute are approximately 5% larger than the original files.
- In-device verification is performed on real device by KVM. It refers to the additional information attached to the pre-verified files & verify whether the class file is structurally or conceptually correct according to J2ME specifications.
As you know small devices are memory constraints, so split verifier improves verification process by generating annotations at compile time and then using this information at runtime. The runtime verification is therefore faster & use less memory.
The Low Level KVM Security is very limited & used to verify that the given set of Java classes in a MIDlet are valid classes and nothing more. Actual security threats are come into picture at this level such as accessing device file system, network connectivity etc. For normal Java, we have different mechanism to over come Security threats, but these are memory consuming and not suitable for handheld devices. So Application Level Security is an optimized variant of Java Sandbox Security Model, which means:-
- Java class files are pre-verified and should be valid Java classes.
- Only a limited, predefined set of APIs are available to the developer.
- Downloading and management of MIDlet is performed by Application Manager (part of KVM).
- No User-defined class loaders.
- No support for Reflection.
- No Thread groups or daemon threads.
- Vendor Specific Signing
- Operator Specific Signing
- Java Verified Signing
![]() |
MIDlet Signing Process |
Operator Specific Signing - If MIDlet is accessing any of the operator specific services like GPRS etc, then user will receive a prompt. To avoid those prompt this signing is very useful & also operator can verify that the MIDlet is authorize to access it’s services. It is mostly used in US & Europe continent by some of the operators.
Vendor Specific Signing – It comes under manufacturer domain signing and this signing will help you to remove all prompts from the application. For this signing, you need to contact each of the vendor & after that they will test your app on predefined test scenarios for MIDlet signing.
Comments
Post a Comment