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 create a method to store transactions logs in java card

JavaCard Applet Development Related Questions and Answers.
Ruenie
Posts: 12
Joined: Tue Feb 16, 2016 10:02 pm
Points :139
Contact:

How to create a method to store transactions logs in java card

Post by Ruenie » Mon Feb 29, 2016 2:41 am

I am programming an applet in JCIDE. In fact, I want to create a method to store transactions logs in java card and call it from my outside application. The problem is I don't know how to get started with this issue. Any pointers?

Erisaron
Posts: 15
Joined: Wed Dec 02, 2015 1:23 am
Points :64
Contact:

Re: How to create a method to store transactions logs in java card

Post by Erisaron » Wed Mar 02, 2016 8:11 am

Just create a byte[] with the size that equals to the transactions size and then store data into that array by TLV and decode it using the TLV when receiving on host side.

ThePhoenyx
Posts: 54
Joined: Mon Jul 20, 2015 1:08 pm
Points :510
Contact:

Re: How to create a method to store transactions logs in java card

Post by ThePhoenyx » Sat Mar 05, 2016 2:52 pm

If you only need to keep a certain number, use a circular file. When it fills it starts overwriting the oldest. If you have to keep them all then a record based file. It also depends on if they are the same length or varying lengths.
The world is full of stories;
And sometimes they permit themselves to be told.
~Cherokee Proverb

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 24 guests

JavaCard OS : Disclaimer