To access the Java Card applet using remote methods, the client application must obtain an instance of the CardAccessor
interface. The ApduIO
class implements the CardAccessor
interface and is included in the framework.
The CardAccessor
interface is a platform-independent and framework-independent interface used by the RMI framework for the Java Card platform to communicate with the card. The CardAccessor
object is then provided as a parameter during construction of the JavaCardRMIConnect
class to initiate an RMI dialog for the Java Card platform as shown in the following code:
// create an RMI connection object for the Java Card platform JavaCardRMIConnect jcRMI = new JavaCardRMIConnect( myCS );