Ambo University
Hachalu Hundessa Campus IOT
Department of Information Technology
Advanced Computer Programming
Prepared by: Mikeyas Meseret
ID: PGR/47308/13
Smart Card in Java
Outline
Introduction to Smart Card in Java
Part of Smart Card
Smart Card Types & Property
Elements of Smart Card
Communicating with a Java Card Applet
Introduction to Smart Cards in Java
A smart card is a plastic card that contains an
embedded integrated circuit (IC)
It is an adoption of Java Platform for usage on
Smart Cards for e.g. : Credit Card, SIM Card …
Smart Cards Can be used to add authentication
and secure access to information systems that
require a high level of security
Java is the programming language the most used
in the application development dedicated to smart
cards
Introduction to Smart Cards cont’d …
Smart Card is highly secured, become active
when connected with the reader
Come in three forms:
Contact smart cards work by communicating via
physical contact between a card reader and the
smart card
Contact less smart cards communicate by means
of a radio frequency signal, with a typical range of
less than 2 feet
Dual Interface there are now cards with both a
contact and a contact less interface
Parts of Smart Card
Commonly, it is made up of three elements. The
plastic card, a printed circuit or contact disc and an
integrated circuit chip are embedded on the card.
Smart Card Types & Property
Integrated Circuit (IC) Microprocessor Cards:
Offer greater memory storage and security of
data than a traditional mag stripe card
Chip cards also can process data on the card .
Integrated Circuit (IC) Memory Cards.
IC memory cards can hold up to 1-4 KB of data
Have no processor
They are dependent on the card reader for their
processing
Optical Memory Cards:
Look like a card with a piece of a CD glued on top
store up to 4 MB of data
Elements of Smart Card
Smart Cards are thin cards with an embedded chip, and this
automatically poses its own unique challenges of architectural
design.
Central Processing Unit
Memory System
Input/Output
Interface Devices
Operating Systems
File Systems
Software
Programming Languages
Communicating with a Java Card Applet
Two methods for communicating with Java Card
Applet:
Fundamental message-passing model
All Java Card applets extend the Applet base class and
must implement the install() and process() methods
JCRE calls install() when installing the applet, and
process() every time there is an incoming APDU for the
applet
APDU: a logical data packet that's exchanged between
the CAD and the Java Card Framework (It is considered
as the center piece for the Message-Passing Model)
Communicating with Java Card cont’d …
The Java Card RMI (JCRMI)
The second communication model relies on a subset
of the J2SE RMI distributed-object model
A server application creates and makes
accessible remote objects
A client application obtains remote references
to remote objects, and then invokes remote
methods on them.
In JCRMI, the Java Card applet is the server, and
the host application the client
The End!
Thank you for your Attention!