示例#1
0
  /**
   * 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++;
  }
示例#2
0
 /**
  * Returns the card session identifier. This number is different for different card sessions.
  *
  * @return the card session identifier
  */
 public int getCardSessionId() {
   return cad.getCardSessionId();
 }
示例#3
0
 /**
  * Returns FCI of the selected application.
  *
  * @return byte[] FCI.
  */
 public byte[] getFCI() {
   return cad.getFCI();
 }
示例#4
0
 /**
  * Returns ATR of the selected application.
  *
  * @return byte[] ATR.
  */
 public byte[] getATR() {
   return cad.getATR();
 }