Documentation



Java Card 3 Platform Development Kit User Guide, Classic Edition

Transit Sample

This sample is available only in bundles intended solely for distribution inside the U.S, and so it cannot be used in global bundles.

The Transit sample illustrates a contactless card-based transit applet. This sample consists of the transit applet and two client applications, the POSTerminal client application and the TransitTerminal client application.

A typical transit scenario is pre-scripted in the TransitDemo file, including crediting and checking the balance (a $99 initial balance) on the transit card at the POS terminal, entering and exiting the transit system through the Turnstile Transit terminal (a $10 fee for the trip), and finally checking the new balance (an $89 balance) on the transit card at the POS terminal.

Because the terminal uses random number generation for challenge/response and for generating session key, the contents of the actual output files generated by running this sample varies from that of the expected output files for the following instructions:

  • CLA:80 INS:30

  • CLA:80 INS:40

Close Window

Table of Contents

Java Card: 3 Platform Development Kit User Guide, Classic Edition

Expand | Collapse