Site Tools

Sidebar

Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing

javacard:jcvm:2.2.6.1_remote_classes_and_remote_interfaces

2.2.6.1 Remote Classes and Remote Interfaces

A class is remote if it or any of its superclasses implements a remote interface.

A remote interface is an interface which satisfies the following requirements:

  • The interface name is java.rmi.Remote or the interface extends, directly or indirectly, the interface java.rmi.Remote.
  • Each method declaration in the remote interface or its super-interfaces includes the exception java.rmi.RemoteException (or one of its superclasses) in its throws clause.
  • In a remote method declaration, if a remote object is declared as a return type, it is declared as the remote interface, not the implementation class of that interface.

In addition, Java Card RMI imposes additional constraints on the definition of remote methods. These constraints are as a result of the Java Card platform language subset and other feature limitations. For more information, see Section 2.2.6.2, Access Control of Remote Interfaces and Section 2.2.6.3, Parameters and Return Values.

javacard/jcvm/2.2.6.1_remote_classes_and_remote_interfaces.txt · Last modified: 2017/05/13 04:11 (external edit)