Motorola maxx V6 manual Draft Subject to Change 90/201, Apdu Connection Establishment Errors

Models: maxx V6

1 201
Download 201 pages 31.32 Kb
Page 90
Image 90

Java ME Developer Guide

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

byte value is separated by a "."

Table 26 javax.microedition.io.Connector.open() BNF syntax

APDU Connection Establishment Errors

If a logical channel is not available for the APDU connection, the implementation throws the ￿￿￿￿￿￿￿￿￿￿￿ to the MIDlet.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ with a nonex- istent card slot number, the implementation throws ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿

exception.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ with a card slot number which does not have a card in it, the implementation throws ￿￿￿￿￿￿￿

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

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ with a nonex- istent AID, the implementation throws ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ exception.

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ and the target application on the card refuses connection request, the implementation throws ￿￿￿￿

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

If a MIDlet calls method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ but the MIDlet is not allowed to access the targeted application on the card, the implementation throws ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ exception.

Using an APDU Connection

Interface APDUConnection implements method ￿￿￿￿￿￿￿￿￿￿￿￿￿￿.

The implementation interprets the CLA byte of the commandAPDU parameter passed in the ￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ method as the logical channel number.

Once an APDU connection is created, a MIDlet can use the

￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿￿ method to send com-

DRAFT - Subject to Change [90/201]

Page 90
Image 90
Motorola maxx V6 manual Draft Subject to Change 90/201, Apdu Connection Establishment Errors