Table of Contents
This document addresses features that are planned for JSR 118 MIDP 2.0 that will be available to WMA applications. Since the MIDP 2.0 specification will be finalized after the WMA 1.0 release, this document will serve as a recommended practices document until a maintenance release of the WMA specification can be released. Please send comments to wma-comments@sun.com. IntroductionThis document provides implementation notes for platform developers deploying the JSR 120 interfaces on a MIDP 2.0 platform. This document will be released with the WMA 1.0 specification, which is initially targeted at MIDP 1.0 devices. Once the MIDP 2.0 release has been finalized, a future revision of this document will become an official part of the JSR 120 specification as part of a maintenance release of the WMA 1.0 specification. This document addresses features available in a MIDP 2.0 device that can be used to enhance WMA applications. In particular, this document describes how to:
SecurityTo send and receive messages using this API, applications MUST be granted a permission to perform the requested operation. The mechanisms for granting a permission are implementation dependent. Permissions for Opening ConnectionsThe JSR 118 MIDP NG specification defines a mechanism for granting permissions to use privileged features. This mechanism is based on a policy mechanism enforced in the platform implementation. The following permissions are defined for the JSR 120 messaging functionality, when deployed with a JSR 118 MIDP 2.0 implementation. To open a connection, a
Permissions for Send and Receive Operations To send and receive messages, the
The permissions for sending and receiving MAY depend on the type of messages and addresses being used. An implementation MAY restrict an application's ability to send some types of messages and/or sending messages to certain recipient addresses. These addresses can include device addresses and/or identifiers, such as port numbers, within a device. An implementation MAY restrict certain types of messages or connection addresses,
such that sending such messages will fail and throw a The applications MUST NOT assume that successfully sending one message implies that they have the permission to send all kinds of messages to all addresses. An application should handle WMA Push Capabilities MIDP 2.0 includes a mechanism to register a For WMA applications this capability allows the application to be launched
if messages arrive either while the WMA Push Registration Entry Push Registrations are either defined in the application descriptor or made
dynamically at runtime via For the For the
For example :
Unlike the initial push connections defined in JSR 118 for MIDP 2.0, the SMS protocol includes an explicit buffering mechanism where messages are held until processed by some application that reads and deletes messages when they are done with data. If a message is delivered to the device and does not pass the specified filter, the message will be deleted by the Application Management Software. When the application is started in response to a Push message, the application SHOULD read and process all messages that are buffered for it. If an application fails to read and process the messages when started or if starting of the application is denied (e.g. by the end user), the platform implementation MAY delete unread messages from the buffer, if it becomes necessary to do so, e.g. because of the buffer becomes full. Another difference between the WMA interface and other JSR 118 protocol handlers
in MIDP 2.0, is that WMA includes a Portable WMA ApplicationsIf permitted by the device security policy, a WMA application written for a MIDP 1.0 platform will work without any modification on a MIDP 2.0 system. This is behavior is defined by the JSR 118 specification of untrusted applications. MIDP 2.0 also supports the concept of trusted applications. For these applications, the device can automatically handle trust decisions based on signed JAR files and a platform-specific policy mechanism that associates specific permissions with the signed application. The security model also allows for the definition of user-granted permissions on a one-shot, session or blanket authorization. In many cases the platform dependent policy for permissions on MIDP 1.0 will be able to be mapped onto the MIDP 2.0 defined permissions. An application designed to work only on a MIDP 2.0 device can use the methods
in the An application designed to run portably on MIDP 1.0 or MIDP 2.0 platforms
will only use the application descriptor and attributes in the manifest to describe
requested permissions and push registration entries. See the JSR 118 MIDP 2.0
specification for details about the Copyright © 2002 Siemens AG. All rights reserved.
| ||||||||||||||||||||||||
Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.
|
| ||||||||||||