Motorola maxx V6 manual Draft Subject to Change 93/201, Closing an Apdu Connection

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 93
Image 93

Java ME Developer Guide

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

throws ￿￿￿￿￿￿￿￿￿￿￿ exception.

If a MIDlet attempts to exchange APDUs using the connection object created before the card was removed and then reinserted the implementation throws ￿￿￿￿￿￿￿￿￿￿￿

￿￿￿￿￿￿￿￿￿￿￿￿ exception.

If a MIDlet attempts to exchange APDUs on an APDU connection that is closed during the communication session, the implementation throws ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

exception.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿ and the commandAPDU parameter is NULL, the implementation throws ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ exception.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿ and the commandAPDU contains a card ap- plication selection APDU, the implementation throws

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ exception.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿ and the commandAPDU parameter contains a MANAGE CHANNEL command APDU, the implementation throws

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ exception.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿ and the channel associated with the con- nection object is non-zero and the CLA byte has a value other than 0x0X, 0x8X, 0x9X or 0xAX, the implementation throws ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ excep- tion.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿ and the commandAPDU parameter contains a malformed APDU, the implementation throws

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ exception.

Closing an APDU Connection

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿, the imple- mentation closes the APDU connection.

When method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ is called by a MIDlet, the implementation releases the logical channel used by the APDU connection.

If the connection that was closed was using channel 0, the implementation updates

DRAFT - Subject to Change [93/201]

Page 93
Image 93
Motorola maxx V6 manual Draft Subject to Change 93/201, Closing an Apdu Connection