Questions tagged [javacard]

Java Card refers to a technology that allows Java-dd applications (applets) to be run securely on smart cards and similar small memory footprint devices.

Java Card is the tiniest of Java targeted for embedded devices, typically smart cards. Java Card gives developers the ability to program the device and make them application specific. It is widely used in SIM cards (used in GSM mobile phones) and/or NFC secure elements, ATM cards (containing an EMV chip), and machine readable travel documents.

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 specifications developed by Sun Microsystems (which is now Oracle Corporation). Many Java Card products rely on the GlobalPlatform specifications for the secure management of applications on the card (download, installation, personalization, deletion). GlobalPlatform was created to manage OpenPlatform, which was an initiative of Visa Inc.

The main design goals of Java Card are portability and security. Although the Java classes are initially compiled using the Java SE compiler there are many restrictions on Java Card. For instance, Java Card Classic does not support String and integer support is optional; object instances are created in persistent memory instead of RAM by default. Java Card has some features that are not present in J2SE as well: application isolation through the so-called applet firewall and a transaction mechanism.

991 questions
24
votes
3 answers

SIMPLE-TLV vs BER-TLV

I have found in docs they are referring to SIMPLE-TLV and BER-TLV . I was look into most of the EMV and GP docs but they have not mentioned the different. Could anyone help me to understand the difference of two ?
nish1013
  • 3,658
  • 8
  • 33
  • 46
23
votes
1 answer

How to run Java Card Connected Edition Web samples on Eclipse?

I downloaded Java Card Connected Edition 3.0.2 from Oracle official website and installed it. There are some web samples in JCDK. In documentation written: All samples must be run from within the NetBeans IDE. They cannot be run from the command…
LEQADA
  • 1,913
  • 3
  • 22
  • 41
19
votes
2 answers

How to send commands to smart card reader (and not to the smart card) while no card present?

Preface: I have a dual interface smart card reader that has some extended capabilities (other than sending APDU commands to card and receiving APDU responses). For example in its document it is mentioned that you can get firmware version of your…
Ebrahim Ghasemi
  • 5,850
  • 10
  • 52
  • 113
18
votes
5 answers

How to get started with Javacard?

I'm new to smart-card development. Please help me understand how to get started. What's the relationship between Javacard and JCOP? How do I map a JCOP version to a GlobalPlatform Card Specification? For example, what specification does JCOP…
Gili
  • 86,244
  • 97
  • 390
  • 689
15
votes
4 answers

Java Card Unit Testing

I'd like to run my Java Card applications in some kind of emulated/simulated environment to be able to run JUnit (or any other unit test framework) tests on them. Does anyone know of such a tool? I'd prefer some open source project.
AO.
  • 151
  • 1
  • 3
11
votes
3 answers

JavaCard 3 in real world?

I'm currently working on my diploma work. Part of the work includes development of JavaCard applet for regular SIM cards. First option is to use JavaCard2.X API and use APDU commands to communicate with the applet. This might be very tricky as I…
AGO
  • 133
  • 7
10
votes
5 answers

How to Self-Lock a Javacard Applet

My question is whether it is possible to lock an applet from within the code of the applet itself as a countermeasure to detected manipulations from within the code. The obvious choice is to use GPSystem.lockCard(); and it works, however I wonder if…
Paul Bastian
  • 2,597
  • 11
  • 26
10
votes
2 answers

Send APDU commands to USIM/SIM card in android

I was already worked with smart cards and I am familiar with APDU commands (that are defined in ISO/IEC 7816 and Global Platform specifications). Now I want to know if there is any way to send an APDU command to my USIM/SIM card that is inserted to…
Jean
  • 687
  • 1
  • 9
  • 25
10
votes
5 answers

Init update given 6985 and 61xx in two different scenario

I have a java card and i write a small code to send APDU to java card. here when i am sending Init_Update command , m getting 0x6985 like:- CMD -> 80 50 00 00 08 11 22 33 44 55 66 77 88 RES <- 6985 But when I am sending this command with other tool…
Arjun
  • 3,491
  • 4
  • 25
  • 47
10
votes
3 answers

Java Card: How to load SIM applet to real smart card?

I developed a Java Card applet in Eclipse and obtained a cap file. Then i used jcManager – Java Secure Card Manager to load that file to my smart cards. I have two type of smart cards: Contact, JCOP 2.1 36K Contactless, JCOP 2.1 My smart card…
Oguz Ozkeroglu
  • 3,025
  • 3
  • 38
  • 64
9
votes
5 answers

Create PrivateKey from byte array

Is there a way to generate PrivateKey from byte array? I got this byte array using getEncoded() method, but now I have to convert it back to PrivateKey. Thanks, Vuk
Vuk
  • 283
  • 2
  • 3
  • 5
9
votes
2 answers

getting started with java card on sim cards

I'm looking to write a simple beginner program using Java Card to run on sim cards. Can anyone point me to some very basic information on getting started? I've seen some descriptions of the toolkit api, but I'm looking for things like: what…
Colin Pickard
  • 45,724
  • 13
  • 98
  • 148
8
votes
1 answer

how to simulate java card applet with Netbeans?

I am new to Java Card Programming (with netbeans). I did everything in the Java Card Development Quick Start page page and I created a classic card applet and tried simulate it. But when I try to simulate and send a command on device console, it…
Savas Adar
  • 4,083
  • 3
  • 46
  • 54
8
votes
2 answers

Required Things to start Smartcard Programming Using Javacard

I wanted to start with the smartcard programming soon. Please help me the things required for starting the learning using javacard. Which IDE (If any IDE Supports), Software and Hardware related? Like Mobile phone simulator is there any smartcard…
Dungeon Hunter
  • 19,827
  • 13
  • 59
  • 82
8
votes
3 answers

What is GlobalPlatform and JavaCard relationship?

I'm getting started with GlobalPlatfrom Card spec and I cannot figure out how GLobalPlatform functinalify comes to JavaCard. Is there any applet that should be installed into a card to make this card GP-compatible? Or is the GP-functionality…
Poni Poni
  • 113
  • 2
  • 5
1
2 3
66 67