FileDocCategorySizeDatePackage
Slot.javaAPI DocphoneME MR2 API (J2ME)3603Wed May 02 18:00:38 BST 2007com.sun.midp.io.j2me.apdu

Slot

public class Slot extends Object
This class represents a slot for APDU connection.

Fields Summary
public static final int
respBufferSize
Size of respBuffer.
int
slot
Slot number.
boolean
SIMPresent
Is SIM present in this slot?.
private int
received
Internal field for native exchangeAPDU() method. Keeps current position of received data in a response buffer.
private boolean
locked
Internal field for native exchangeAPDU() method. Keeps internal locking status.
boolean
basicChannelInUse
Since at any time once channel always has to be open with the card and that channel is generally the basic channel. If the basic channel is not in use, the APDU manager can select the next application on that channel. This variable shows if basic channel is in use currently or not.
boolean
powered
This variable shows if the card currently powered or not.
byte[]
respBuffer
Internal buffer for response data.
byte[]
getChannelAPDU
APDU for logical channel allocation.
byte[]
closeChannelAPDU
APDU for closing a logical channel.
byte[]
getResponseAPDU
APDU for the GET RESPONSE command.
byte[]
isAliveAPDU
An isAlive command APDU.
byte[]
atr
Answer-To-Reset from last reset command.
byte[]
FCI
File Control Information (FCI) from last selection command.
int
cardSessionId
Unique identifier of card session (period of time between card power up and powerdown).This value is increased after any reset command.
Constructors Summary
Slot(int slot)
Creates a new slot with specified parameters.

param
slot slot number


                    
      

        this.slot = slot;
        this.cardSessionId = 1;
        this.locked = false;
        this.powered = false;
        this.SIMPresent = false;
        this.basicChannelInUse = false;
        this.respBuffer = new byte[respBufferSize];
        this.atr = null;
        this.FCI = null;
        
        this.getChannelAPDU = new byte[] {0, 0x70, 0, 0, 1};
        this.closeChannelAPDU = new byte[] {0, 0x70, (byte) 0x80, 0};
        this.getResponseAPDU = new byte[] {0, (byte)0xC0, 0, 0, 0};
        this.isAliveAPDU = new byte[] {0, 0x70, (byte) 0x80, 0};

    
Methods Summary