Package com.sun.javacard.apduio

Examples of com.sun.javacard.apduio.Apdu


   * @throws IOException
   * @throws CadTransportException
   */
  private void send(byte ins, byte P1, byte P2, byte lc, byte[] data, byte le)
  throws IOException, CadTransportException {
    apdu = new Apdu();
    apdu.command[Apdu.CLA] = CLA_PURSEAPPLET;
    apdu.command[Apdu.INS] = ins;
    apdu.command[Apdu.P1] = P1;
    apdu.command[Apdu.P2] = P2;
    apdu.setLc(lc);
View Full Code Here


        int choix = System.in.read();
        while (!(choix >= '1' && choix <= '4')) {
          choix = System.in.read();
        }
       
        apdu = new Apdu();
        apdu.command[Apdu.CLA] = PurseClientJC.CLA_PURSEAPPLET;
        apdu.command[Apdu.P1] = 0x00;
        apdu.command[Apdu.P2] = 0x00;
       
        switch (choix) {
View Full Code Here

      return;
    }
  }
 
  private void select() {
    apdu = new Apdu();
    apdu.command[Apdu.CLA] = 0x00;
    apdu.command[Apdu.INS] = (byte) 0xA4;
    apdu.command[Apdu.P1] = 0x04;
    apdu.command[Apdu.P2] = 0x00;
    byte[] appletAID = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x00 };
View Full Code Here

TOP

Related Classes of com.sun.javacard.apduio.Apdu

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.