Motorola maxx V6 manual Draft Subject to Change 94/201, Error Cases When Closing Apdu Connection

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 94
Image 94

Java ME Developer Guide

Chapter 12 - JSR-177 Java ME Security and Trust Services API

it's availability status.

Logical channels other than the basic channel may be closed when the connection is closed. Basic channel or channel 0 has to remain open, and cannot be closed.

Error Cases When Closing APDU Connection

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ on a con- nection that is executing in another thread, any pending I/O method throws ￿￿￿￿￿￿

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿.

The methods of APDUConnection are not synchronized. The only method that can be called safely in another thread is ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿.

If a MIDlet terminates without calling ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

on the open connection, the implementation performs the close operation automatic- ally in order to recover resources such as the logical channel.

Support for (U)SIM Application Toolkit ((U)SAT)

When a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ to open a connection to a (U)SAT application, the implementation aquires channel 0.

When a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ to open a connection to a (U)SAT application, the implementation addresses (U)SIM in slot 0.

The implementation ensures that channel 0 is always available for the new APDU connection to the (U)SAT.

When a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ to open a connection to a (U)SAT application, the URI string is formatted as "apdu:<slot>;target=SAT".

A MIDlet in the operator domain has full and exclusive access to the APDU connec- tion.

If the MIDlet is trying to access PIN-related methods while a APDU connection is es- tablished with a (U)SAT application, the implementation throws ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿.

DRAFT - Subject to Change [94/201]

Page 94
Image 94
Motorola maxx V6 manual Draft Subject to Change 94/201, Error Cases When Closing Apdu Connection