java left logo
java middle logo
java right logo
 

Home arrow Java ME Tips
 
 
Main Menu
Home
Java Tutorials
Book Reviews
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Java Network
Java Forums
Java Blog




Most Visited Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews
Top Rated Tips
Java SE Tips
Java ME Tips
Java EE Tips
Other API Tips
Java Applications
Java Libraries
Java Games
Book Reviews


Statistics
Registered Users: 4101
Java SE Tips: 614
Java ME Tips: 202
Java EE Tips: 183
Other API Tips: 779
Java Applications: 298
Java Libraries: 209
Java Games: 16
Book Reviews:
 
 
 
Protection Domains for Midlet Suites E-mail
User Rating: / 19
PoorBest 

MIDP2.0 gives facility for protection domains. Every MIDLET gets installed into a specific protection domain on device.

Setting MIDlet Permissions

In a protection domain, Midlet suite sets permission to allow particular operations. There are specific attributes in JAD file that describes certain permissions.

MIDlet-Permissions: javax.microedition.io.Connector.http
MIDlet-Permissions-opt: javax.microedition.io.Connector.socket

This attribute means that Midlet Suite needs to make HTTP connections and it may make socket connections.

J2ME wireless toolkit 2.0 automatically sets permissions. Click Settings -> Permissions.

Security

There are 4 security domains. Untrusted,trusted minimum and maximum. A Midlet Suite can run in any of the 4 domains.Default is untrusted domain. To change security domain at runtime ,click Edit -> Prefernces and set Security.

Signing MIDlet Suites

Downloaded code can be dangenerous. Midlets can make unauthorised connections with network. A signed MIDlet suite assures the user that the contents of the MIDlet suite are clean and MIDlet suite comes from an identifiable source. The MIDP implementation on the device can verify the identity of the developer by verifying the developer's signature. It can use the developer's public key to verify the integrity of the MIDlet suite itself.

The signing process can be done by choosing Project -> Sign in J2ME wireless toolkit 2.0.


 Related Tips

 
< Prev   Next >

Page 1 of 0 ( 0 comments )

You can share your information about this topic using the form below!

Please do not post your questions with this form! Thanks.


Name (required)


E-Mail (required)

Your email will not be displayed on the site - only to our administrator
Homepage(optional)



Comment Enable HTML code : Yes No



 
       
         
     
 
 
 
   
 
 
java bottom left
java bottom middle
java bottom right
RSS 0.91 FeedRSS 1.0 FeedRSS 2.0 FeedATOM FeedOPML Feed

Home - About Us - Privacy Policy
Copyright 2005 - 2008 www.java-tips.org
Java is a trademark of Sun Microsystems, Inc.