com.sun.javacard.rmiclientlib
Class JCCardProxyFactory

java.lang.Object
  extended by com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
      extended by com.sun.javacard.rmiclientlib.JCCardProxyFactory

public class JCCardProxyFactory
extends com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory

Processes the data returned from the card in the format defined for Java Card RMI. Object references must contain lists of interface names. Extends CardObjectFactory.


Field Summary
 
Fields inherited from class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
REF_FORMAT_CLASS, REF_FORMAT_INTERFACES, REF_FORMAT_NONE
 
Constructor Summary
JCCardProxyFactory()
          Constructor for the factory.
 
Method Summary
protected  java.rmi.Remote getRemoteObject(byte[] buffer, int tagOffset, CardAccessor cardAccessor)
          Creates the stub instance for object reference returned from the card, assuming the card returned a reference with list of interface names.
 byte getRemoteRefFormat()
          Returns constant REF_FORMAT_INTERFACES defined in class CardObjectFactory.
 
Methods inherited from class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
getINSByte, getObject, setINSByte
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCCardProxyFactory

public JCCardProxyFactory()
Constructor for the factory.

Method Detail

getRemoteRefFormat

public byte getRemoteRefFormat()
Returns constant REF_FORMAT_INTERFACES defined in class CardObjectFactory.

Specified by:
getRemoteRefFormat in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
Returns:
The format constant.

getRemoteObject

protected java.rmi.Remote getRemoteObject(byte[] buffer,
                                          int tagOffset,
                                          CardAccessor cardAccessor)
                                   throws java.lang.Exception
Creates the stub instance for object reference returned from the card, assuming the card returned a reference with list of interface names.

Specified by:
getRemoteObject in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
Parameters:
cardAccessor -
buffer - APDU buffer.
tagOffset - Offset to tag.
Returns:
The instance of the proxy.
Throws:
java.lang.Exception - Thrown if the proxy instance cannot be instantiated