Question: Suppose there are multiple instance of an Applet. Currently one Applet instance is selected. Is it possible to pass any APDU command from the selected Applet to another Applet instance? I did not find such any method in JavaCard API version 3.0.4.
Details: While researching the document "Expresspay Mobile Specifications v1.2" for implementing the 'Application Selection' service, I get stuck in the following section 5.3.6. As the document is not open source, I'm quoting the selective part:
"If an Expresspay Mobile Application is selected over the contact less interface using the Partial AID, then it shall pass the SELECT command and subsequent commands to the activated Expresspay Mobile Application instance (which may or may not be the application being selected)."
It states that I need to pass a SELECT command from currently selected applet to the another applet (which is activated!). But I did not find anything in JavaCard API that will pass any command from one applet to another applet. I searched on Oracle Community and found this with no reply!
Edit: Suppose there are three instances A1, A2, A3 of applet A. Applet A has a shareable flag object flag
, containing AID of "active" instance, say AID of A2. (Assume that flag
may be pre-initialized). Currently instance A1 is selected. Now the terminal sends any APDU command, that will come to instance A1. A1 will check the flag
and find out that flag
contains AID of A2. So, A1 will pass the APDU command to A2 for further processing. My question is how A1 instance send any APDU command to A2 instance?
File occurrence
bits toNext occurence
. – JavaCardOSNext occurence
. – rakeb.mazharul