Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

How to give the key as the parameter of install() method

JavaCard Applet Development Related Questions and Answers.
Danieken
Posts: 19
Joined: Thu Sep 17, 2015 10:28 pm
Points :101
Contact:

How to give the key as the parameter of install() method

Post by Danieken » Fri Nov 27, 2015 2:08 am

Install method takes 3 parameters as the code shows.

Code: Select all

public static void install(byte[] bArray, short bOffset, byte bLength) 
    {
        new purse();
    }


In my applet, key is hardcoded and i want to give the key as the parameter of install() method.

How can I do this?

User avatar
mabel
Posts: 237
Joined: Mon May 18, 2015 3:09 am
Points :1705
Contact:

Re: How to give the key as the parameter of install() method

Post by mabel » Wed Dec 02, 2015 7:56 am

Normally a Java Card implementation also implements Global Platform. In that case the user parameters can be given as part of the INSTALL for INSTALL command.
It is important to provide the instance AID first. Then there is a specific format for the Application Specific Parameters (tag C9, then a length byte, then the parameters in binary). You need to parse this structure in the Java Card install method as well.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 58 guests

JavaCard OS : Disclaimer