Excited to tell you that our welfare activity has been upgraded - Paying only $5.00 + Freight to get JCOP J3H145 card and A40CR card.
Please check this post for more details.

Moreover, if you want to get Free Samples by Paying Freight only , please check this page.

Question about APDU

JavaCard Applet Development Related Questions and Answers.
colkif
Posts: 4
Joined: Mon Sep 25, 2017 11:21 pm
Points :54
Contact:

Question about APDU

Post by colkif » Sun Oct 08, 2017 8:52 pm

I have downloaded the new JCIDE. And it's an excellent tool for java card developers I think.
But when I program my Hello world applet, I have two questions.

- Where will be the bytes sent if we used the method APDU.sendBytes() ?
- From where APDU.getBuffer() retrieves bytes?

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

Re: Question about APDU

Post by mabel » Sun Oct 08, 2017 9:18 pm

A1: Method sendBytes() causes the card to send a number of bytes to terminal from current APDU buffer.
A2: Method getBuffer() returns a reference to a byte array buffer contained command data sent from terminal to the card.

If you use JCIDE to run your applet, you may communicate with the simulator.

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Baidu [Spider] and 5 guests

JavaCard OS : Disclaimer