com.sun.javacard.rmiclientlib
Class JCCardObjectFactory
java.lang.Object
com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
com.sun.javacard.rmiclientlib.JCCardObjectFactory
public class JCCardObjectFactory
- 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 class names.
Extends CardObjectFactory
.
Fields inherited from class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory |
REF_FORMAT_CLASS, REF_FORMAT_INTERFACES, REF_FORMAT_NONE |
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 class name. |
byte |
getRemoteRefFormat()
Returns constant REF_FORMAT_CLASS
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 |
JCCardObjectFactory
public JCCardObjectFactory()
- The constructor.
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 class name.
- Specified by:
getRemoteObject
in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
- Parameters:
cardAccessor
- used to instantiate stubs of remote objectsbuffer
- APDU buffertagOffset
- Offset to tag
- Returns:
- The resulting stub.
- Throws:
java.lang.Exception
- Failed to instantiate a stub
getRemoteRefFormat
public byte getRemoteRefFormat()
- Returns constant
REF_FORMAT_CLASS
defined in class
CardObjectFactory
.
- Specified by:
getRemoteRefFormat
in class com.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
- Returns:
- REF_FORMAT_CLASS value defined above