SELECT FILE
In response to the SELECT FILE command, the dispatcher follows this procedure:
-
If the specified channel is closed, open the channel.
-
Deselect currently selected applet in channel if needed.
-
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 |
|---|---|---|---|---|---|---|---|---|
|
|
|
|
|
(AID len) |
(AID) |
|
|
|
This command produces the following results:
-
Channel encoded in
Rcan 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
Ris not open, this command opens channelR. -
If channel encoded in
Ris 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.MultiSelectableinterface, or if the applet to be selected does not implement this interface. -
Channel encoded in
Ris not available.