Intercept select commands
843851Jul 10 2009 — edited Jul 29 2009Can 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()?