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

j3h081 dual interface card storage structure

Anyone has an idea how the storage or memory of j3h081 jcop card is structured? I want to know if it uses the blocks and sectors type of memory structure or some other structure?
-1
votes
2 answers

How to convert the Javacard cap file to its corresponding byte stream?

I'm currently developing Javacard and generate the cap file using Ant script(the file name be like demo.cap), and now I want to construct the GP(GlobalPlatform) command to run the LOAD process on a samrt card. But it's encapsulated into cap format.…
rockeln
  • 1
  • 1
-1
votes
1 answer

How to access Pinpad of a Smartcard Reader when developing a Javacard Applet

I am relatively new to Javacard and I am in the process of developing my own Javacard Applet which works quite well until now. I am also writing a host program to communicate with my card (via APDUs), this program is written in Java and uses the…
-1
votes
3 answers

Is it possible to translate Javacard code to NFC?

I was wondering if it is possible to code on a NFC whatever we would code with Javacard ? I have a project where a smart card contains a biometric id to be scaned and and we want to do it wirelessly with a NFC. Do you think that is possible ? What…
-1
votes
1 answer

Java Card Technology for Smart Cards: Architecture and Programmer's Guide by Zhiqun Chen

From where can I download Java Card Technology for Smart Cards: Architecture and Programmer's Guide by Zhiqun Chen.
Amit Singh
  • 13
  • 3
-1
votes
2 answers

Exception when creating Cipher instance in Java Card

I'm using java card 3.0.4. when i create an instance of Cipher (from javacardx.crypto package) like bellow: Cipher.getInstance(Cipher.ALG_AES_BLOCK_128_CBC_NOPAD, false); i receive an error. No matter what algorithm I use, same exception…
AHD
  • 21
  • 3
-1
votes
3 answers

NFC smartcard that is impossible to clone

First, I want to apologize. I am complete noob in this area and many of my thoughts are probably misleading. I need to verify that a user of my app is on a specific place in order to be authirized to perform an action. I want to use NFC for this…
Míla Mrvík
  • 525
  • 2
  • 15
-1
votes
1 answer

JCOP 3 pre-personalization secid p60

I want to know how to pre-personalization jcop 3 card i tried JCOP 2 pre-personalization script but it didn't work and searched and i didn't find any results to it so far . i tried this tutorial…
-1
votes
1 answer

Decode/Decrypt APDU responses Java Card

I use smartcardio library to communicate with smart card by Java. I get responses from card then I want to decode the response to text and it's kinda complicated. Example : I select the file on the card. Get Binary response from the file. Read…
XtrEmE
  • 13
  • 6
-1
votes
1 answer

How to get access to Omnikey 3121 smart card reader

I want to use Java to get access to smart card by Omnikey reader. I found couple solutions like a smartcardio, but it didn't help enough. Basically I connected with reader, but it uses APDU when I don't need it. I have an idea to open stream to my…
XtrEmE
  • 13
  • 6
-1
votes
1 answer

Load cap file into javacard

I'm currently developing c# dll for machine to load applet into java card. I tried to convert file into bytes but the bytes are not the same as the bytes from pyapdutool. From PYAPDUTOOL <<80 E8 00 00 FA C4 82 53 AB 01 00 27 DE CA FF ED 02 02 04 00…
Bya
  • 11
  • 2
-1
votes
1 answer

How to keep log messages to a file in JCShell?

I am executing some commands in JCShell (init-update, auth-ext, etc) to communicate with a SmartCard. I would like to address all those log messages to a file, so then I could manipulate them. What is the command/method to do this? Thanks
-1
votes
1 answer

javacardx AES encryption not equal to javax AES decryption

I'm developing a smartcard that communicates via middleware to a server. The server needs to authenticate itself to the smartcard. Part of this authentication process is a challenge that is encrypted with a sessionkey. The server needs to decrypt…
Ruben Vervaeke
  • 51
  • 2
  • 11
-1
votes
1 answer

Java card send APDU command through server

I have created a server to send APDU commands to java card application. The connection has been established successfully. The only problem that I encounter is that that I send a command successfully but the Java Card aplication doesn't receive…
simplify
  • 109
  • 11
-1
votes
1 answer

Receiving SW 6F 00 when trying to obtain RSA public key modulus

I have an issue with obtaining the RSA public key modulus with my Java Card applet implementation: The command SEND_PUB (see case statement case SEND_PUB) for sending the public 512 bits RSA key returns the status word 6F 00. What could be wrong…
Ayman
  • 3
  • 3