|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.jc.RemoteObject
This class represents a remote card object reference.
| Constructor Summary | |
RemoteObject(JCApplet applet,
boolean refWithClass)
Selects the given JC RMI server applet via the current logical channel and constructs an initial remote object from the returned applet FCI. |
|
RemoteObject(JCApplet applet,
byte[] selectFCI,
int off,
boolean refWithClass)
Constructs an initial remote object from the given applet FCI. |
|
RemoteObject(JCApplet applet,
int ins,
int jcrmiVersion,
byte[] desc,
int off,
boolean refWithClass)
Constructs a remote object from the given remote object descriptor data. |
|
| Method Summary | |
JCApplet |
getApplet()
Returns the JC RMI server applet hosting this remote obejct. |
byte[] |
getHashModifier()
Returns the hash modifier used by this object. |
int |
getINS()
Returns the INVOKE instruction byte used to send INVOKE command APDUs. |
int |
getJCRMIVersion()
Returns the version of the JC RMI protocol used. |
java.lang.Object |
getName()
Returns the class/inteface name(s) of this remote object. |
int |
getRefID()
Returns the remote object reference ID. |
RemoteMethod |
getRemoteMethod(java.lang.String name,
java.lang.String signature)
Generates a remote method for this remote object. |
RemoteMethod |
getRemoteMethodIntl(java.lang.String name,
java.lang.String signature)
Generates a remote method for this remote object. |
void |
setINS(int ins)
Sets the INVOKE instruction byte used to send INVOKE command APDUs. |
java.lang.String |
toString()
Returns a textual description of this remote object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RemoteObject(JCApplet applet,
boolean refWithClass)
applet - JavaCard RMI server applet hosting the remote object
(might be of type OPApplet).refWithClass - true if the applet is to be selected with the
remote_ref_with_class bit (bit 5
of P2 in command header) not set, false otherwise
(meaning format remote_ref_with_interfaces).
JCException - if parameters are invalid, the FCI does not
include a valid object descriptor or the FCI
includes a null object reference.
JCRMIErrorException - if the FCI includes a JC RMI error response.JCException,
JCRMIErrorException
public RemoteObject(JCApplet applet,
byte[] selectFCI,
int off,
boolean refWithClass)
applet - JavaCard RMI server applet hosting the remote object
(might be of type OPApplet).selectFCI - the FCI including the remote object descriptor.refWithClass - true if the applet has been selected with the
remote_ref_with_class bit (bit 5
of P2 in command header) not set, false otherwise
(meaning format remote_ref_with_interfaces).
JCException - if parameters are invalid, the FCI does not
include a valid object descriptor or the FCI
includes a null object reference.
JCRMIErrorException - if the FCI includes a JC RMI error response.JCException,
JCRMIErrorException
public RemoteObject(JCApplet applet,
int ins,
int jcrmiVersion,
byte[] desc,
int off,
boolean refWithClass)
applet - JavaCard RMI server applet hosting the remote object
(might be of type OPApplet).ins - The instruction byte to be used when invoking remote methods.jcrmiVersion - The JC RMI version (e.g. 0x0202).desc - The remote object descriptor.off - Offset into desc.refWithClass - true if the applet has been selected with the
remote_ref_with_class bit (bit 5
of P2 in command header) not set, false otherwise
(meaning format remote_ref_with_interfaces).
JCException - if parameters are invalid, the data does not
include a valid object descriptor or the descriptor
includes a null object reference.JCException| Method Detail |
public int getINS()
public void setINS(int ins)
ins - INVOKE instruction byte.public int getJCRMIVersion()
public int getRefID()
public byte[] getHashModifier()
null).public JCApplet getApplet()
public java.lang.Object getName()
public java.lang.String toString()
public RemoteMethod getRemoteMethod(java.lang.String name,
java.lang.String signature)
name - The simple, not fully qualified, method name.signature - The method signature in the format:
byte;
byte[];short;short[];
boolean;booolean[]) or a fully qualified
class name (usually java.rmi.Remote) indicating an object reference.
Parameters can be of basic type (as listed above) only.
The type void can be omitted.
JCException - if parameters are invalid.RemoteMethod,
JCException
public RemoteMethod getRemoteMethodIntl(java.lang.String name,
java.lang.String signature)
name - The simple, not fully qualified, method name.signature - The method signature in the format as it is used
internally within Java class files.
JCException - if parameters are invalid.RemoteMethod,
JCException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||