Skip to main content
Last updated July 11, 2012 15:15, by jcardsim
Feedicon  

jCardSim Wiki

About

jCardSim is an open source simulator implements Java Card, v.2.2.1:

  • javacard.framework.*
  • javacard.framework.security.*
  • javacardx.crypto.*

Key Features:

  • Rapid application prototyping
  • Ease of writing Unit-tests (5 lines of code)
  • Emulation of Java Card Terminal, ability to use javax.smartcardio
  • APDU scripting (scripts are compatible with apdutool from Java Card Development Kit)
  • Ease of verification tests creation (Common Criteria)

//1. create simulator
Simulator simulator = new Simulator();
//2. install applet
simulator.installApplet(appletAID, HelloWorldApplet.class);
//3. select applet
simulator.selectApplet(appletAID);
//4. send apdu
ResponseAPDU response = simulator.transmitCommand(new CommandAPDU(0x01, 0x01, 0x00, 0x00));
//5. check response
assertEquals(0x9000, response.getSW());

Documentation

Quick Start Guide: Using in CLI mode

Quick Start Guide: Simulator API

Getting Source & Compiling

JavaDoc

 
 
Close
loading
Please Confirm
Close