digplanet beta 1: Athena
Share digplanet:

Agriculture

Applied sciences

Arts

Belief

Business

Chronology

Culture

Education

Environment

Geography

Health

History

Humanities

Language

Law

Life

Mathematics

Nature

People

Politics

Science

Society

Technology

Java Card refers to a technology that allows Java-based applications (applets) to be run securely on smart cards and similar small memory footprint devices. Java Card is the tiniest of Java platforms targeted for embedded devices. Java Card gives the user the ability to program the devices and make them application specific. It is widely used in SIM cards (used in GSM mobile phones) and ATM cards.[citation needed] The first Java Card was introduced in 1996 by Schlumberger's card division which later merged with Gemplus to form Gemalto. Java Card products are based on the Java Card Platform specifications developed by Sun Microsystems (later a subsidiary of Oracle Corporation). Many Java card products also rely on the GlobalPlatform specifications for the secure management of applications on the card (download, installation, personalization, deletion).

The main design goals of the Java Card technology are portability and security.[1]

Contents

Portability [edit]

Java Card aims at defining a standard smart card computing environment allowing the same Java Card applet to run on different smart cards, much like a Java applet runs on different computers. As in Java, this is accomplished using the combination of a virtual machine (the Java Card Virtual Machine), and a well-defined runtime library, which largely abstracts the applet from differences between smart cards. Portability remains mitigated by issues of memory size, performance, and runtime support (e.g. for communication protocols or cryptographic algorithms)...

Security [edit]

Java Card technology was originally developed for the purpose of securing sensitive information stored on smart cards. Security is determined by various aspects of this technology:

Data encapsulation
Data is stored within the application, and Java Card applications are executed in an isolated environment (the Java Card VM), separate from the underlying operating system and hardware.
Applet Firewall
Unlike other Java VMs, a Java Card VM usually manages several applications, each one controlling sensitive data. Different applications are therefore separated from each other by an applet firewall which restricts and checks access of data elements of one applet to another.
Cryptography
Commonly used symmetric key algorithms like DES, Triple DES, AES, and asymmetric key algorithms such as RSA, elliptic curve cryptography are supported as well as other cryptographic services like signing, key generation and key exchange.
Applet
The applet is a state machine which processes only incoming command requests and responds by sending data or response status words back to the interface device.

Java Card vs Java [edit]

Language [edit]

At the language level, Java Card is a precise subset of Java: all language constructs of Java Card exist in Java and behave identically. This goes to the point that as part of a standard build cycle, a Java Card program is compiled into a Java class file by a Java compiler, without any special option (the class file is post-processed by tools specific to the Java Card platform). However, many Java language features are not supported by Java Card (in particular types char, double, float and long; the transient qualifier; enums; arrays of more than one dimension; finalization; object cloning; threads). Further, some common features of Java are not provided at runtime by many actual smart cards (in particular type int, which is the default type of a Java expression; and garbage collection of objects).

Bytecode [edit]

Java Card bytecode run by the Java Card Virtual Machine is a functional subset of Java [Java 2 - Standard Edition] bytecode run by a Java Virtual Machine, but uses a different encoding optimized for size. A Java Card applet thus typically uses less bytecode than the hypothetical Java applet obtained by compiling the same Java source code. This conserves memory, a necessity in resource constrained devices like smart cards. As a design tradeoff, there is no support for some Java language features (as mentioned above), and size limitations. Techniques exist for overcoming the size limitations, such as dividing the application's code into packages below the 64 KiB limit.

Library and runtime [edit]

Standard Java Card class library and runtime support differs a lot from that in Java, and the common subset is minimal. For example, the Java Security Manager class is not supported in Java Card, where security policies are implemented by the Java Card Virtual Machine; and transients (non-persistent, fast RAM variables that can be class members) are supported via a Java Card class library, while they have native language support in Java.

Specific features [edit]

The Java Card runtime and virtual machine also support features that are specific to the Java Card platform:

Persistence
With Java Card, objects are by default stored in persistent memory (RAM is very scarce on smart cards, and it is only used for temporary or security-sensitive objects). The runtime environment as well as the bytecode have therefore been adapted to manage persistent objects.
Atomicity
As smart cards are externally powered and rely on persistent memory, persistent updates must be atomic. The individual write operations performed by individual bytecode instructions and API methods are therefore guaranteed atomic, and the Java Card Runtime includes a limited transaction mechanism.
Applet isolation
The Java Card firewall is a mechanism that isolates the different applets present on a card from each other. It also includes a sharing mechanism that allows an applet to explicitly make an object available to other applets.

Development [edit]

Coding techniques used in a practical Java Card program differ significantly from that used in a Java program. Still, that Java Card uses a precise subset of the Java language speeds up the learning curve, and enables using a Java environment to develop and debug a Java Card program (caveat: even if debugging occurs with Java bytecode, make sure that the class file fits the limitation of Java Card language by converting it to Java Card bytecode; and test in a real Java Card smart card early on to get an idea of the performance); further, one can run and debug both the Java Card code for the application to be embedded in a smart card, and a Java application that will be in the host using the smart card, all working jointly in the same environment.

Java Card 3.0 [edit]

The version 3.0 of the JavaCard specification (draft released in March 2008) is separated in two editions: the Classic Edition and the Connected Edition.

  • The Classic Edition is an evolution of the Java Card Platform Version 2.2.2 and supports traditional card applets on more resource-constrained devices.
  • The Connected Edition provides a new virtual machine and an enhanced execution environment with network-oriented features. Applications can be developed as classic card applets requested by APDU commands or as servlets using HTTP to support web-based schemes of communication (HTML, REST, SOAP ...) with the card. The runtime supports volatile objects (garbage collection), multithreading, inter-application communications facilities, persistence, transactions, card management facilities ...)

See also [edit]

References [edit]

  1. ^ Ahmed Patel, Kenan Kalajdzic, Laleh Golafshan, Mona Taghavi (2011). "Design and Implementation of a Zero-Knowledge Authentication Framework for Java Card". International Journal of Information Security and Privacy 5 (3). IGI. pp. 1–18. 

External links [edit]


Original courtesy of Wikipedia: http://en.wikipedia.org/wiki/Java_Card — Please support Wikipedia.
A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia.
199096 videos foundNext > 

Developing Java Card Applications

More and more projects require awareness of Java Card technology, usually for client security use cases. This session provides background on new and existing...

Java Card 3 Platform, Connected Edition - A New World of Smartcard Applications

This video provides and overview of Java Card 3 technology and a demonstration of some of the new applications that can be implemented using Java Card 3, Con...

Java Card Fingerprint Matching

Project PlaySIM: Experimenting with Java Card™ 3 System Prog

Google Tech Talk June 5, 2009 ABSTRACT Presented by Eric Arseneau, Sun Microsystems, and Fritjof Engelhardtsen, Telenor. The Java Card™ system is the smalles...

how to write a java card applet

To learn Java card programming and see latest posts on java card visit my blog: http://adf.ly/AYdGX.

Java swing GUI tutorial #18: CardLayout

If you have any question, leave it in comment section below. Source codes available here: https://github.com/BranislavLazic/SwingTutorials.

Java Card Shell

To learn Java card programming and see latest posts on java card visit my blog: http://adf.ly/AYdGX ---------------------------------------------------------...

JavaCard authentication and general functions of the system

Java Tutorial : How to use CardLayout.

How to use CardLayout in java to layout sub-components. How to use JComboBox. How to use ItemListener. For more java tutorials go here! http://www.youtube.co...

Java Programming Tutorial-#5- Switch Statements- 21 Card Game

Basic knowledge of how to write Switch Statements. 21 the card game is used as an example in this tutorial.

199096 videos foundNext > 

5 news items

 
PR Web (press release)
Tue, 14 May 2013 06:18:51 -0700

CredenSE product line offers a wide choice of user memory up to 8GB with a variety of onboard Secure Elements that are compatible with industry standards such as EMV, Global Platform, ISO 14443, FIPS 140 and Java Card. The flagship of the product line, ...
 
InfoQ: 时刻关注企业软件开发领域的变化与创新
Thu, 09 May 2013 06:22:52 -0700

本次JavaOne大会重点关注『核心Java平台』、『JavaFX 与富用户体验』、『Java EE、Web 服务与云』以及『Java ME、Java Embedded 与Java Card』等几大主题。 核心Java平台. Java平台的应用越发广泛,这得益于不断发展的Java语言 ...
 
Journal-Advocate
Mon, 29 Apr 2013 18:46:41 -0700

At 10:20 a.m., Jill and James Allen of Sterling reported trespassing and theft from auto at 405 Jackson St., which occurred between 11 p.m. April 27 and 8:30 a.m. April 28. A 2008 Dodge Charger was vandalized and a $30 Hot Java card was stolen. April ...
 
マイナビニュース
Wed, 15 May 2013 21:44:10 -0700

Ramani氏は、Java SE Embedded(医療機器等のハイスペック向け)、Oracle Java ME Embedded Client(OJEC、STB等のミドルクラス向け)、Java ME Embedded(携帯等の小型デバイス向け)、Java Card(セキュリティカード)などのプラットフォームに加えて、Java ME-Eが ...
 
InfoQ: 时刻关注企业软件开发领域的变化与创新
Wed, 08 May 2013 03:04:59 -0700

Java Card平台支持移动支付、使用Vert.x实现JVM异步编程、Java SE 8的55个新特性、体验树莓派(Raspberry Pi)、用Java构建WebSocket应用:JSR 356、Java EE 7平台入门、树莓派(Raspberry Pi) 上的Java实践、什么是“向后 ...
Loading

Oops, we seem to be having trouble contacting Twitter

Talk About Java Card

You can talk about Java Card with people all over the world in our discussions.

Support Wikipedia

A portion of the proceeds from advertising on Digplanet goes to supporting Wikipedia. Please add your support for Wikipedia!