Sun Logo


Application Programming Notes, Java Card Platform, Version 2.2.2

Java Cardtrademark Platform, Version 2.2.2

3-11-06



Contents

Preface

1. Using Object, Package and Applet Deletion

Object Deletion Mechanism

Requesting the Object Deletion Mechanism

Object Deletion Mechanism Usage Guidelines

Package and Applet Deletion

Developing Removable Packages

Writing Removable Applets

Using the AppletEvent.uninstall Method

2. Working with Logical Channels

Applets and Logical Channels

Non-MultiSelectable Applets

Interoperability

Understanding the MultiSelectable Interface

Selection for MultiSelectable Applets

Deselection for MultiSelectable Applets

Writing Applets For Concurrent Logical Channels

MultiSelectable Applet Example

Handling Channel Information on APDU Commands

Writing ISO 7816-4:2005 Compliant Applets

ISO 7816-4:2005 Compliant Applet Example

Applet Firewall Operation Requirements

Working with Non-MultiSelectable Applets

ISO 7816-4:2005 Specific APDU Commands for Logical Channel Management

MANAGE CHANNEL OPEN

MANAGE CHANNEL CLOSE

SELECT FILE

3. Working with APDU I/O

The APDU I/O API

APDU I/O Classes and Interfaces

Exceptions

Two-interface Card Simulation

Examples of Use

To Connect To a Simulator

To Establish a T=0 Connection To a Card

To Establish a Connection To a PC/SC-Compatible Card Reader

To Power Up And Power Down the Card

To Exchange APDUs

To Print the APDU

4. Developing RMI Applications for the Java Card Platform

Developing an RMI Applet for the Java Card Platform

Generating Stubs

Running a Java Card RMI Applet

Running the Java Card RMI Client Program

Basic Example

Main Program

Building an Applet

Writing a Client

Card Terminal Interaction

Adding Security

Implementing a Security Service

Building an Applet

Writing a Client

5. Using Extended APDU

Extended APDU Nominal Cases

Extended APDU Format

Extended APDU Limits

javacardx.framework.ExtendedLength Interface

Extensions To javacard.framework.APDU Class

Sending and Receiving Extended APDU Commands

Index