Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Intercept select commands

843851Jul 10 2009 — edited Jul 29 2009
Can I intercept select APDU commands from an applet without passing these commands to the OS. The OS will naturally deselect my applet which is quite the opposite of what I want. Can it be achieved at all? Do I have to write my own security domain then?

"selectingApplet()
This method is used by the applet process() method to distinguish the SELECT APDU command that selected this applet from all other SELECT APDU commands that may relate to file or internal applet state selection."
(http://www.javaworld.com/javaworld/jw-07-1999/jw-07-javacard.html?page=2)

Does that mean that I should be able to intercept select APDU commands with my applet?

Can I prevent deselection of my applet by throwing an exception in deselection()?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2009
Added on Jul 10 2009
1 comment
256 views