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.

bArray in JCRE

JavaCard Applet Development Related Questions and Answers.
dabluwt
Posts: 11
Joined: Wed Oct 12, 2016 11:47 pm
Points :106
Contact:

bArray in JCRE

Post by dabluwt » Fri Nov 11, 2016 4:07 am

There are two global array in JCRE implementation. They are bArray for Install method and APDU buffer.
what are their sizes ? Is it possible to store their references in class by the below code?

byte [] reference = bArray
Last edited by dabluwt on Fri Nov 11, 2016 5:47 am, edited 1 time in total.

Neqikoo
Posts: 7
Joined: Thu Feb 25, 2016 3:48 am
Points :74
Contact:

Re: bArray in JCRE

Post by Neqikoo » Fri Nov 11, 2016 5:01 am

The bArray buffer for install method is the APDU buffer from the call to INSTALL. Usually it's 261 bytes.

afrascoi
Posts: 18
Joined: Mon Jan 25, 2016 1:20 am
Points :265
Contact:

Re: bArray in JCRE

Post by afrascoi » Fri Nov 11, 2016 5:21 am

The size depends on the card. And you can't store them in a reference due to the JCRE applet firewall.

wumindejia
Posts: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: bArray in JCRE

Post by wumindejia » Sun Nov 13, 2016 10:08 pm

You can use short i;
i = (short)(bArray.length); in the install command.
byte[] buf = apdu.getBuffer();
short i = (short)(buf.length); in the process(APDU apdu).

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 53 guests

JavaCard OS : Disclaimer