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
0
votes
1 answer

what's wrong with this javacard .cap file?

I have a fresh java card and two .cap file! one of them successfully installed on the card (and deleted successfully!) and the another one failed to upload and install. I put the output of "GPJ" in the below. what's wrong with the .cap file? and…
Ebrahim Ghasemi
  • 5,850
  • 10
  • 52
  • 113
0
votes
1 answer

How javacards Logs data in the card?

I want to know how transactions will be logged in a java card? did it performed by applets? and after transactions, how I can read log events? did the card supplier put a function in the .dll files to read log or something? thanks
Ebrahim Ghasemi
  • 5,850
  • 10
  • 52
  • 113
0
votes
1 answer

Byte array memory allocation on java card

I'm working on a project to manage strong authentication using a Java card, there is a server app that creates user IDs and PIN codes, it then loads the pin code on the smart card and it's signature, and here is the problem, when i try to load the…
0
votes
1 answer

RSA Key generation fails on JCARD 2.2.2

I'm beginner in JCard programming (2 days experience ...) and I'm trying to deploy an app on a CREF emulated card that generates an RSA KeyPair and sends the public key over to the host RMI Client application, somehow when I launch the init method…
0
votes
1 answer

can I install javacard development kit on eclipse 4.2 within the android bundle?

I have seen some content online about using Eclipse 3.2 with javacard development. I am wondering if anyone has used Eclipse 4.2 to develop and run javacard applications?
user3326293
  • 817
  • 1
  • 14
  • 37
0
votes
2 answers

PIV smartcard from browser how it works for authentication without applet

Reading smartcard keystore from browser for digital signature vs using it for authentication, why for digital signature keystore we have to use applet (run some code on client machine to read the key) vs for authentication browsers reads the keys…
user884424
  • 573
  • 1
  • 12
  • 33
0
votes
3 answers

Upload a .script file into the JavaCard

I've jsut finished coding my java Card Applet and I need to know how to upload the generated script file into the JavaCard so I can go further and start working on the client side to test my Applet. Thanks in advance.
Achraf
  • 67
  • 1
  • 6
0
votes
4 answers

Store a String data into my JavaCard

I need to know how to store String data in my JavaCard, any help please ? P.S : JavaCard does not support String type.
Achraf
  • 67
  • 1
  • 6
0
votes
1 answer

Can i upload my java card applet on a non java smart card?

I'm new to Java Card and I'm working on a project where I need PIN secured smart cards for a healthcare project. What I wanted to know is if I can load my Java Card Applet on a non Java smart card (I'm trying to avoid the expensive cost which can…
Achraf
  • 67
  • 1
  • 6
0
votes
1 answer

How to send ATR command to reset nfc secure element using android?

i am building android application which connect to nfc secure element and get data to the android device.for building secure element i used java card API.In the jcop tools send ATR command to reset the java card.This is the sending commands. /card…
Sajith Vijesekara
  • 1,324
  • 2
  • 17
  • 52
0
votes
1 answer

Java Card Communication

I recently bought some Java Cards: GP 2.1.1 JC 2.2.2 JCOP I have created some applets using the emulators. Now I need to transfer these to the card. I am using the open source "gpshell" and "jcManager" to load the applets. The problem is that I…
nikosdi
  • 2,138
  • 5
  • 26
  • 35
0
votes
2 answers

Javacard beginner - questions

first of all i want to let you know that i am new regarding javacards. I am in the research phase of writing a javacard applet and i have some questions which suprisingly are not so easy to answer through google-search. I want to create an android…
sidi
  • 3
  • 1
0
votes
1 answer

Access Byte Array at a "byte array" position

The question sounds confusing I suppose, trying to make it more clear. I'd like to implement a specifing non-leaking map with java card and according to the pseudocode I have, I should implement something like this: JCArrayInt[] f = new…
achiever
  • 309
  • 1
  • 16
0
votes
1 answer

Suitable NXP card for MUSCLE applet

I'm checking JCOP product range for a suitable version for MUSCLE applet. CAP file size of this applet is 14KB. which versions can be used for this applet? http://www.nxp.com/documents/line_card/75016728.pdf what parameter I should check for it?…
Taheri
  • 324
  • 4
  • 15
0
votes
1 answer

How to get geolocation data with JavaCard from SIM

I would like to write a simple cardlet which takes geolocation data from my SIM card. I read about JavaCard but I have no idea how I can use it to get geolocation. I read that SIM cards keep the information about Local Area Identity and I would…
ruhungry
  • 4,506
  • 20
  • 54
  • 98