JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
How to handle java card transaction when power loss or removing the card from smartcard reader
-
- Posts: 13
- Joined: Wed Sep 16, 2015 10:54 pm
- Points :60
- Contact:
How to handle java card transaction when power loss or removing the card from smartcard reader
I am working on a project which uses java card for transactions. Now I am experiencing a problem.
How can we handle java card transaction when power loss or removing the card from smartcard reader?
Can I reset javacard applet internally? How can I do this?
How can we handle java card transaction when power loss or removing the card from smartcard reader?
Can I reset javacard applet internally? How can I do this?
Java card newbie 

-
- Posts: 11
- Joined: Sat Aug 29, 2015 2:01 am
- Points :16
- Contact:
Re: How to handle java card transaction when power loss or removing the card from smartcard reader
Within transactions writes to persistent memory such as EEPROM or flash are handled atomically. That is: as if all the writes to persistent memory are part of one big action.
To create an atomic copy you need to use Util.arrayCopy(). There may also be other actions that can take part of atomicity. If actions that change persistent memory do not take part in an atomic transaction then the Java Card API will explicitly document those actions.
There is no method to reset a Java Card. Instead you can use JCSystem.abortTransaction().
To create an atomic copy you need to use Util.arrayCopy(). There may also be other actions that can take part of atomicity. If actions that change persistent memory do not take part in an atomic transaction then the Java Card API will explicitly document those actions.
There is no method to reset a Java Card. Instead you can use JCSystem.abortTransaction().
Being the best possible version of yourself.
Who is online
Users browsing this forum: No registered users and 24 guests