Site Tools

Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:jcre:4.6.1_manage_channel_close_command

4.6.1 MANAGE CHANNEL CLOSE Command

Upon receiving a MANAGE CHANNEL CLOSE command on an I/O interface, the Java Card RE shall run the following procedure:

1. The MANAGE CHANNEL CLOSE command uses: CLA=%b000000cc* (where cc in the bits (b2,b1) denotes the origin logical channel: 0-3) or CLA=%0100dddd* (where dddd in the bits (b4-b1) denote the origin logical channel: 4-19), INS=0x70, P1=0x80 and P2 specifies the logical channel to be closed.

  • If the MANAGE CHANNEL CLOSE command has non-zero secure messaging bits (b4,b3) in the CLA byte when the origin logical channel is 0-3 or non-zero bit (b6*) when the origin logical channel is 4-19, the Java Card RE responds with status code 0x6882 (SW_SECURE_MESSAGING_NOT_SUPPORTED).
  • If the MANAGE CHANNEL command is issued with P1 not equal 0 or 0x80, the Java Card RE responds with status code 0x6A81 (SW_FUNC_NOT_SUPPORTED).

2. If the origin logical channel on the I/O interface that received the MANAGE CHANNEL CLOSE command is not open, the Java Card RE responds with status code 0x6881 (SW_LOGICAL_CHANNEL_NOT_SUPPORTED).

3. If the Java Card RE supports only the basic logical channel on the I/O interface that received the MANAGE CHANNEL CLOSE command, the Java Card RE responds with status code 0x6881 (SW_LOGICAL_CHANNEL_NOT_SUPPORTED).

4. If the specified logical channel to close is the basic logical channel (logical channel 0) or the specified logical channel number is greater than 19, the Java Card RE responds with status code 0x6A81 (SW_FUNC_NOT_SUPPORTED).

5. If the specified logical channel to close is currently open on the I/O interface that received the MANAGE CHANNEL CLOSE command, deselect the active applet instance (if any) on the specified logical channel as described above in Section 4.6, Applet Deselection. The specified logical channel is now closed. The Java Card RE responds with status code 0x9000.

6. Otherwise, if the specified logical channel is closed or not available on that I/O interface, the Java Card RE responds with warning status code 0x6200 (SW_WARNING_STATE_UNCHANGED).

javacard/jcre/4.6.1_manage_channel_close_command.txt · Last modified: 2017/05/13 04:07 (external edit)