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
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 channelR
. -
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.