The Tansit sample illustrates the use of the Java Card API, scenarios of package masking, and post-manufacture installation. The Tansit sample demonstrates how a card holder can use a web enabled point-of-sale applet on a Java Card 3 platform enabled smart card to manage their transaction account, a user can securely manage their transaction account from an untrusted web browser, a user can make secure transactions using their Java Card 3 platform enabled smart card (in this sample the transactions are turnstile activities), and administration functions can be performed as the user conducts trqansactions. This sample contains nine library and web applications that demonstrate the wallet, turnstile, transaction, and administration event mechanisms.
Running the Transit sample consists of using the IDE to open and run the individual projects in the following sequence:
WalletClassicLib
TransitExtLib
ClassicWalletApplet
WalletAssistApplet
POSWeb
AdminWeb
TurnstileApplet
TurnstileClient
TurnstileWeb
Note - The POSWeb application has been internationalized and can be localized for the French language.
Before performing the following procedure, the Java Card 3 Development Kit, Connected Editon must be downloaded and installed on your development system.
The AdminWeb,ClassicWalletApplet, POSWeb, TransitExtLib, TurnstileApplet, TurnstileClient, TurnstileWeb, WalletAssistApplet, and WalletClassicLib projects are located under the JC_CONNECTED_HOME\samples\web\Transit folder.
Note - Refer to the Java Card 3 Platform Development Kit User’s Guide for additional details including screen captures.
See Build TransitExtLib.
Verify that the applet was successfully created. The SELECT APDU command returns success status word 90 00. Additional APDU commands are used to credit the Wallet additional $100 (0x64). Verify that these commands return success status words 90 00. See Run ClassicWalletApplet.”
Verify that the applet was successfully created. The SELECT APDU command returns Status word 69 99. See Run WalletAssistApplet.”
See Run POSWeb.
See Run AdminWeb.
The log window displays a 90 00 in select response.See Run TurnstileApplet.
See Run TurnstileClient.
The Output window displays 90 00 completes and SUCCESSFULL.
The balance displays 2 less - 98.
The browser displays the Entry page. See Run TurnstileWeb
The browser displays the Transit Turnstile Exit page.