8.5 RMIService Class

The RMIService class implements the Java Card RMI protocol and processes the RMI access commands described earlier: SELECT FILE and INVOKE. It performs the function of the transport layer for Java Card RMI commands on the card.

The RMIService object maintains a list of remote objects that have been returned during the current applet selection session. It enforces the following rules for the lifetime of the remote object references:

In addition, a remote object reference descriptor of an object must only be returned from the card if it is exported. See the class javacard.framework.service.CardRemoteObject. Otherwise, an exception is thrown. See the class javacard.framework.service.RMIService.