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 is the low power Consumption java card

Hi I am new to java card development.so i want to build application which encrypt data coming from the Mobile device(mobile phone) as NFC technology and send back to the device.i couldn't found any related document about java card power…
Need
  • 97
  • 1
  • 11
0
votes
0 answers

Read java card uid

i am new to java card development.i need to know how to read uid in java card using apdu commands .i couldn't find a solution.i found only how to select the Application id( APDU format 0x00,0xA4,0x04,00) same way i need to detect the uid in java…
Need
  • 97
  • 1
  • 11
0
votes
1 answer

There is not javacard.framework in Eclipse

I tried to write a javacard applet. So, Download Java Card Classic Development Kit 3.0.4 that I get its JAR File I add the JAR File in to Eclipse by add it in the Java Build Path>Library. But when I wanted to import javacard.framework, I got the…
thsecmaniac
  • 73
  • 1
  • 3
  • 10
0
votes
1 answer

Package javacardx.framework does not exist

Im new here and trying to develop a applet for Javacard. While following a sample code from a website, I get stuck here. NetBeans says the Package javacardx.framework does not exist. Im using NetBeans 7.3.1 I would have not linked the Java Classic…
VBNetFresher
  • 21
  • 1
  • 4
0
votes
2 answers

Java card applet convert to .cap file

I am new to java card development.so I have created java card simple applet using java card 2.2.2. Can anyone tell me how to convert javacard applet to (.cap)file easily.And also what are the tools we can used. Thanks SSV
AndroidMe
  • 13
  • 3
  • 6
0
votes
2 answers

Java card key installation

I am new to java card development.i want to know how we can store secure key values in the java card applet.because i want to use PKI (public key infrastructure) for the authentication.is it possible ?? if yes how we can store key in java card…
Sajith Vijesekara
  • 1,324
  • 2
  • 17
  • 52
0
votes
0 answers

Gpj installation error in Linux

i am new to java card development. i want to write java applet and create .cap file to the smart card.so i read https://www.opensc-project.org/opensc/wiki/JavaCard this article and i in download the gpj-20120310.zip and try to install that one in…
Sajith Vijesekara
  • 1,324
  • 2
  • 17
  • 52
0
votes
1 answer

How can i get the list of AID in java card?

I want to get All of the AID in a java card . I do not know what do i? Can anybody help me please ?
user1820817
  • 31
  • 1
  • 4
0
votes
1 answer

Difference smart card with same ATR

In a Java program I need to difference two identical Javacard and GlobalPlatform smart cards (with same ATR, of course). I need do it before to establish any secure channel, so is there a way to know the aid's of the applets that there are installed…
bra_racing
  • 622
  • 1
  • 8
  • 32
0
votes
1 answer

JCDE plugins in Eclipse doesn`t work ,java card

I copy the eclipse-jcde-0.2 into eclipse'plugin folder ,but the plugins in eclipse doesn't work, Do I still lack of something necessary such as FEATURES folder and how can I get the features ? OS:windows Eclipse version :3.2.
Erin
  • 1
  • 1
0
votes
1 answer

JavaCard: Overlay and restrictions for CLEAR_ON_DESELECT transients?

In Java Card (I'm interested in Classic downto 2.1.1), transient (RAM) needed by an applet is typically allocated on install by makeTransientByteArray(). That method accepts a parameter CLEAR_ON_RESET or CLEAR_ON_DESELECT. The later comes with…
fgrieu
  • 2,724
  • 1
  • 23
  • 53
0
votes
2 answers

Generate HMAC_SHA256 Signature in JavaCard Applet

I am trying to sign a message which contains in inBuffer byte array using my own derived key S (also byte array). The snippet of the function from javacard (jc) applet module is given below. I am using javacard2.2.2 library for developing jc applet.…
Ankit Singh
  • 2,602
  • 6
  • 32
  • 44
0
votes
1 answer

NFC compatible tag to use for elliptic curve encryption

I have an Android project that requires me to use an NFC tag for encryption/signing data using an elliptical curve algorithm. I need the tag to be able to perform the crypto itself using a keypair that I generate externally. It's important that the…
user1233983
  • 333
  • 1
  • 4
  • 6
0
votes
1 answer

Java Card Conversion

I have written a Java Card App and want to upload it to a Card. But the card supports Java 2.1.1 standard. So I am looking for a way of generating a 2.1.1 Compliant CAP file with my 2.2.2 Kit I have: Java 1.6 GPShell 1.4.2 Java Card 2.2.2 JCOP 30…
Ngetha
  • 254
  • 3
  • 10
-1
votes
1 answer

Does GIDS applet support Secure Channel Protocol?

I'm trying to wrap my head around Secure Channel Protocol because I would like to to establish secure communication between my app and GIDS. Unfortunately all the SCP documentation is extremely vague. After reading it thoroughly I still do not…
Andrey Chernukha
  • 21,488
  • 17
  • 97
  • 161