Motorola maxx V6 manual Draft Subject to Change 37/201

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 37
Image 37

Java ME Developer Guide

Chapter 6 - JSR-75 - PIM and Fileconnection APIs

The implementation should provide a security model for accessing the FileConnection APIs as defined in JSR-75.

Fileconnection API should be accessible to manufacturer and operator domain MIDlets subject to security restrictions.

Connection API should prohibit the modification or removing the files and directories marked with the system attribute.

Call to System.getProperty with key microedition.io.file.FileConnection.version should return the implementation version number starting with 1.0.

Files read/write permissions should be supported by the device's native system:

javax.microedition.io.Connector.file.read - should enable reading from the file system (hereinafter just "read permission").

javax.microedition.io.Connector.file.write - should enable writing to the file system (hereinafter just "write permission").

The "read permission" and "write permission" should be mapped to the function groups "User Data Read Capability" and "User Data Write Capability" respectively. These two groups and permissions are in Table 8:

Function

Trusted Third

Untrusted

Manufacturer

Operator

Group

Party

 

 

 

User Data

Always Ask, Ask

Always Ask

Full Access

Full Access

Read Capab-

Once Per App, Never

 

 

 

ility

Ask, No Access

 

 

 

User Data

Always Ask, Ask

No Access

Full Access

Full Access

Write Capab-

Once Per App, Never

 

 

 

ility

Ask, No Access

 

 

 

Table 8 Groups and permissions for

The Fileconnection permissions should be prohibited for granting to a MIDlet suite which doesn't request them explicitly in the attributes MIDlet-Permissions or MIDlet- Permissions -Opt.

If the permission is not granted, a SecurityException shall be thrown by the following methods: open, openDataInputStream, openInputStream, setFileConnection, list- Roots, openDataOutputStream, openOutputStream; PIMList.items(all methods), PIMList.itemsByCategory, PIMList.addCategory, PIMList.deleteCategory, PIMList.renameCategory, PIMItem.commit, ContactList.removeContact, Event- List.removeEvent, EventList.items.

DRAFT - Subject to Change [37/201]

Page 37
Image 37
Motorola maxx V6 manual Draft Subject to Change 37/201