As far as I know, When JCRE Receive an SELECT APDU command, first of all, it search its registry table for the AID that the command indicates. If it doesn't found the AID in its Registry Table returns 6A82
. But if JCRE found it, it will call the deselect()
method of the selected applet, and after receiving a True
, It will call select()
method of the requested applet. if it receive a True
from that method, mark that applet as selected.
My questions:
1- What happens if the first applet (Currently Selected Applet) returns False
when JCRE calls its deselect()
method? Does the applet remains Selected
?
2- What happens if the second applet (The requested Applet) returns False
when JCRE calls its select()
method?which one of applets will be select in this case? the default is Security Domain?