|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.javacard.javax.smartcard.rmiclient.CardObjectFactory
public abstract class CardObjectFactory
This CardObjectFactory abstract class represents the base class for
Java Card RMI version 2.2.1 stub generation implementations. An instance of this
class is associated with one Java Card applet selection session.
| Field Summary | |
|---|---|
static byte |
REF_FORMAT_CLASS
This value (=1) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the name of the card implementation remote class. |
static byte |
REF_FORMAT_INTERFACES
This value (=2) is used to signify that the CardObjectFactory implementation suppports the Java Card RMI remote reference format using the names of the remote interfaces implemented by the card implementation remote class. |
static byte |
REF_FORMAT_NONE
This value (=0) is used to signify that the CardObjectFactory implementation does not suppport any Java Card RMI remote reference descriptor formats. |
| Constructor Summary | |
|---|---|
CardObjectFactory()
Creates a new CardObjectFactory for this RMI session |
|
| Method Summary | |
|---|---|
byte |
getINSByte()
returns the configured ISO 7816-4 command INS byte to be used in the Java Card platform remote method invocation command |
java.lang.Object |
getObject(byte[] buffer,
int tagOffset,
java.lang.Class type,
CardAccessor cardAccessor)
This abstract method returns the instance of the card object corresponding to the value returned from the card. |
protected abstract java.rmi.Remote |
getRemoteObject(byte[] buffer,
int tagOffset,
CardAccessor cardAccessor)
This abstract method instantiates a stub or proxy object corresponding to the remote reference returned from the card |
abstract byte |
getRemoteRefFormat()
returns the format of Java Card RMI remote object reference descriptor supported. |
void |
setINSByte(byte ins)
Sets the ISO 7816-4 header INS byte to use for Java Card RMI method invocation commands. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte REF_FORMAT_NONE
public static final byte REF_FORMAT_CLASS
public static final byte REF_FORMAT_INTERFACES
| Constructor Detail |
|---|
public CardObjectFactory()
| Method Detail |
|---|
public java.lang.Object getObject(byte[] buffer,
int tagOffset,
java.lang.Class type,
CardAccessor cardAccessor)
throws java.rmi.RemoteException,
java.rmi.StubNotFoundException,
java.lang.Exception
cardAccessor - used to instantiate stubs or proxies of remote objectsbuffer - the byte array containing the Java Card RMI version 2.2 response datatagOffset - the offset within the array where the response tag is locatedtype - the expected return type in the response data
java.rmi.StubNotFoundException - if an appropriate object could not be instantiated
java.rmi.RemoteException - for any RMI-specific exceptions
java.lang.Exception - for exceptions thrown on the card
protected abstract java.rmi.Remote getRemoteObject(byte[] buffer,
int tagOffset,
CardAccessor cardAccessor)
throws java.lang.Exception
buffer - the byte array containing the JC 2.2 RMI response datatagOffset - the offset within the array where the response tag is located
java.lang.Exception - In case of error during processingpublic void setINSByte(byte ins)
ins - the ISO 7816-4 INS command header byte to use for Java Card RMI invocation commandspublic byte getINSByte()
public abstract byte getRemoteRefFormat()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||