JavaCard Applet Development Related Questions and Answers.
-
Danieken
- Posts: 19
- Joined: Thu Sep 17, 2015 10:28 pm
- Points :101
-
Contact:
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?
-
mabel
- Posts: 237
- Joined: Mon May 18, 2015 3:09 am
- Points :1705
-
Contact:
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.
Users browsing this forum: Google [Bot] and 33 guests
JavaCard OS : Disclaimer
Board Disclaimer
The views and comments posted in these fora are personal and do not necessarily represent the those of the Management of JavaCard OS.
The Management of JavaCard OS does not, under any circumstances whatsoever, accept any responsibility for any advice, or recommentations, made by, or implied by, any member or guest vistor of JavaCard OS that results in any loss whatsoever in any manner to a member of JavaCard OS, or to any other person.
Furthermore, the Management of JavaCard OS is not, and cannot be, responsible for the content of any other Internet site(s) that have been linked to from JavaCard OS.