Is it possible to return some data along with the status word 9000 on selecting an applet in javacard?
Posted: Thu Nov 26, 2015 5:37 am
I was wondering if i could send back some data from the java card applet when it is selected.
Since select() method returns a boolean value, I don't know how to return data bytes from it.
Can anyone help me with this? i want the applet to return a simple byte array along with the status word 9000 (which is default for success), when i send the select command to the card.
ie, when i send the following command
00 A4 04 00 06 01 02 03 04 05 06
i want a response like,
01 02 03 04 90 00
(first four bytes are the data returned from the applet)
Thanks in advance.
Since select() method returns a boolean value, I don't know how to return data bytes from it.
Can anyone help me with this? i want the applet to return a simple byte array along with the status word 9000 (which is default for success), when i send the select command to the card.
ie, when i send the following command
00 A4 04 00 06 01 02 03 04 05 06
i want a response like,
01 02 03 04 90 00
(first four bytes are the data returned from the applet)
Thanks in advance.