SELECT FILE

In response to the SELECT FILE command, the dispatcher follows this procedure:

  1. If the specified channel is closed, open the channel.

  2. Deselect currently selected applet in channel if needed.

  3. Select specified applet in the channel.

This SELECT FILE command selects an applet on channel R:

CLA INS P1 P2 Lc Data Le SW1 SW2

0x0R

0xA4

0x04

0x00

(AID len)

(AID)

0

0x90

00

This command produces the following results:

  • Channel encoded in R can be any channel (opened or unopened), including the basic channel

  • The applet identified in the Data section becomes the selected applet on channel R

  • If channel encoded in R is not open, this command opens channel R

  • If channel encoded in R is open, this command changes the selected applet in the channel to the one specified

This command returns an error in the following circumstances:

  • The applet cannot be found or is not available. The current applet is left selected and an error is returned

  • An active applet belonging to the same package does not implement the javacard.framework.MultiSelectable interface, or if the applet to be selected does not implement this interface

  • Channel encoded in R is not available