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
7
votes
3 answers

NXP has Java Cards?

Why there is no search result about "JCOP" or terms like J2A040 and j3d081 in NXP website? I want to start Java Card developement and find Java Cards in market named JCOP21-72 J2A040 NXP JAVA based smart card, 40k EEPROM jcop31 jcop41 ... But the…
Taheri
  • 324
  • 4
  • 15
7
votes
2 answers

Simulate int variables with byte or short

As you know there is no int variable on JavaCard 2.2.x. I need integer variables for the applet I'm developing. I want to know how to simulate an int variable and its arithmetic using byte and short variables.
Mohammad Banisaeid
  • 2,376
  • 27
  • 35
6
votes
2 answers

Make an binary addition behave like a (packed-) decimal addition

I'm currently working on a restrictive environment where the only types allowed are : byte, byte[], short, short[]. I am almost certain that I can't import external libraries, since I'm working on a JavaCard, and have already tried such things,…
Harnex
  • 61
  • 3
6
votes
3 answers

How to preserve data when updating Java Card / GlobalPlatform applet?

How can I update a Java Card applet that contains data that need to be preserved across versions? As best as I can tell updating an applet is done by deleting it and then installing the new version, which seems like it would also delete any…
scott
  • 1,127
  • 1
  • 12
  • 21
6
votes
1 answer

What is the IP address of the web server in Java Card 3.0 connected version?

When we run a web server in a java card 3.0 compatible card, how can we request that server or rather at which IP address do we request that server. Further more can an android app request and get a response from the server if so how can we do it ?
6
votes
2 answers

How to read file from smart card using java

I am new in smart card technology. I want to read file from smart card. I am using javax.smartcardio to read value. I developed some code to connecting system to card (That's work fine). I have card ATR and other detail also. But not getting proper…
Krunal Indrodiya
  • 782
  • 2
  • 7
  • 19
6
votes
1 answer

How to create and use Java Card library packages?

As you may know, and as it is mentioned in Java Card Development Kit User Guide, the key to writing large applications for the Java Card platform is to divide the code into individual package units. The most important limitation on a package is the…
Ebrahim Ghasemi
  • 5,850
  • 10
  • 52
  • 113
6
votes
3 answers

Is there JavaCard 3.0.4 SDK for Linux?

I am developing an applet with JavaCard 3.0.4 version. I have downloaded and installed SDK with Oracle installer…
raiym
  • 1,439
  • 1
  • 28
  • 54
6
votes
1 answer

How to generate java CAP files using Commandline

I'm trying to generate CAP file of the following program for a Java Card 2.2.1 platform compliant smart card: package helloWorldPackage; import javacard.framework.APDU; import javacard.framework.Applet; import javacard.framework.ISO7816; import…
user3739941
6
votes
3 answers

Safe Max Java Card APDU Data Command and Respond Size

What is the recommended data field size in a Java Card APDU ? From Zhiqun Chen's Java Card Technology for Smart Cards: Architecture and Programmer's Guide book, it mentions that Le field allows a max of 255. Are we to interpret it as follow for the…
thotheolh
  • 7,040
  • 7
  • 33
  • 49
6
votes
1 answer

Class javacard.framework.service.CardRemoteObject not found

I'm newer in Java Card Platform so please be patient with me. I'm trying to develop an RMI application for the Java Card 3 Platform. My IDE is Eclipse and my OS is Windows 10. I start by creating a simple interface IContor.java responsible for…
user5295799
6
votes
2 answers

ALG_RSA_NOPAD in Java Card

To compute efficiently a square in Java Card, I want to use the algorithm ALG_RSA_NOPAD with an exponent equals to 2 and a modulus greater than the expected result (so the modular reduction has no effect). But I'm not able to use the algorithm…
Raoul722
  • 1,222
  • 13
  • 30
6
votes
1 answer

Javacard - power loss during garbage collection

I noticed some very strange behaviour on my smartcards (NXP J2E145, J3A081, J3C145 with an Omnikey 5121 reader): A power loss right after calling JavaCard method JCSystem.requestObjectDeletion() can damage the card: after about 10% of such power…
vojta
  • 5,591
  • 2
  • 24
  • 64
6
votes
1 answer

Getting started with SIM card

I want to start working with cell-phones and SIM cards. I searched a lot in the internet but still I have some problem! I want to know : 1. What is the difference between (U)SIM cards and Smart Cards? As I know, SIM and USIM, both are a kind of…
TheGoodUser
  • 1,188
  • 4
  • 26
  • 52
6
votes
3 answers

Specification defining ECDSA signature data

I want to know what specification (or standard) define the data format of the ECDSA signature and public key? I'm testing the ECDSA signature on java card. I found out that there is a TLV format in the signature and the public key value. * Public…
user2642459
  • 507
  • 3
  • 10
  • 18
1 2
3
66 67