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
Lock applet on card power transitions
Lock applet on card power transitions
Hello!
I want to make the applet be the locked state on card power transitions. I mean once the card loses power, the applet should be locked the next time it is powered. I have already looked at MultiSelectable and AppletEvent, but they all seem to trigger only when the applet is selected or deselected.
Anyone has the similar work experience before?
I want to make the applet be the locked state on card power transitions. I mean once the card loses power, the applet should be locked the next time it is powered. I have already looked at MultiSelectable and AppletEvent, but they all seem to trigger only when the applet is selected or deselected.
Anyone has the similar work experience before?
Re: Lock applet on card power transitions
As code can't be called after power is lost.
The simple method is to keep a magic in CLEAR_ON_RESET memory and always check for the presence of the magic cookie in either select() or process() and run your code if not.
The simple method is to keep a magic in CLEAR_ON_RESET memory and always check for the presence of the magic cookie in either select() or process() and run your code if not.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela
Re: Lock applet on card power transitions
If I use a magic with CLEAR_ON_RESET, won't this also be reset for an ATR?
Re: Lock applet on card power transitions
Yes, it would also respond to a warm reset.
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela
Who is online
Users browsing this forum: No registered users and 34 guests