开发者

JavaCard monitoring folder

开发者 https://www.devze.com 2022-12-28 23:51 出处:网络
I want to write a two way application: applet for javacard and an application in C#. I\'ve got the C# covered but i want to know if with JavaCard i can monitor a folder on the memory and how woul开发者

I want to write a two way application: applet for javacard and an application in C#. I've got the C# covered but i want to know if with JavaCard i can monitor a folder on the memory and how woul开发者_JS百科d i go about doing that.

I have a shared folder let's call it temp in which i want to store buffer information between the simulated smartcard and the C# application. The C# application will only read from that folder and display the information, but also it will write requests towards the smartcard.

For example i simulate entering the PIN for the card. The applet will write a file containing available options and the C# application will read that file and display those options; from the C# app i will chose and option and write a request file in the same folder. This is when the smartcard which is monitoring that folder will read the request and issue a response. Can i make the smartcard monitor that folder?

I was thinking of using encrypted XML files for the request/response operations. But simple .txt files are good to.

I am limited to using JavaCard v2.2.1, and every operation has to be encrypted/decrypted. (with the ciphering i have no problem)


You can not monitor a Windows folder via Java Card Applet, As you want to did some monitoring via .Net application,So simpler solution could be a .Net application define some proprietary APDU (like get / set) and send to java card (JC) application , whenever JC application receive these specific APDU it will return some result which is caught by .Net application & this is feasible to.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号