/** * Creates a new handle with specified parameters. * * @param slot slot number * @param channel channel number */ Handle(int slot, int channel) { this.slot = slot; this.channel = channel; cad = APDUManager.cads[slot]; FCI = cad.getFCI(); opened = true; this.cardSessionId = cad.getCardSessionId(); this.handleInstance = instanceNo++; }
/** * Returns the card session identifier. This number is different for different card sessions. * * @return the card session identifier */ public int getCardSessionId() { return cad.getCardSessionId(); }