com.ibm.jc.rmi
Class RMIObjectFactory

java.lang.Object
  extended bycom.ibm.jc.rmi.RMIObjectFactory

public class RMIObjectFactory
extends java.lang.Object

The RMIObjectFactory provides a method to obtain an initial remote object from a Java Card applet offering RMI functionality. The communication with the applet is performed through the IBM BlueZ Offcard API. The remote object is constructed from the applet FCI using the list of implemented interfaces. This method does not make use of stubs; only the interface classes are required.


Method Summary
static java.lang.Object getInitialReference(JCApplet applet)
          Returns the initial remote object for the given Java Card applet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInitialReference

public static java.lang.Object getInitialReference(JCApplet applet)
Returns the initial remote object for the given Java Card applet. The Java Card applet is selected on the current logical channel and the initial remote object constructed from the returned applet FCI.

Returns:
The newly constructed remote reference object. This object can be cast to any of the implemented remote interfaces.
Throws:
JCRMIErrorException - if the FCI includes a JC RMI error response.
JCException - if parameters are invalid, the FCI does not include a valid object descriptor or the FCI includes a null object reference.

BlueZ Secure Systems

Copyright (c) 2004 International Business Machines Corporation. All rights reserved.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.