|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.licel.jcardsim.remote.JavaCardRemoteClient
public class JavaCardRemoteClient
RMI client
Constructor Summary | |
---|---|
JavaCardRemoteClient(String serverHost,
int serverIp)
|
Method Summary | |
---|---|
AID |
createApplet(AID aid,
byte[] bArray,
short bOffset,
byte bLength)
Create Applet instance in Simulator |
byte[] |
getATR()
Returns ATR |
AID |
installApplet(AID aid,
String appletClassName,
byte[] appletJarContents,
byte[] bArray,
short bOffset,
byte bLength)
Install Applet into Simulator. |
AID |
installApplet(AID aid,
String appletClassName,
byte[] bArray,
short bOffset,
byte bLength)
Install Applet into Simulator. |
AID |
loadApplet(AID aid,
String appletClassName)
Load Applet into Simulator |
AID |
loadApplet(AID aid,
String appletClassName,
byte[] appletJarContents)
Load Applet into Simulator |
void |
reset()
Powerdown/Powerup |
boolean |
selectApplet(AID aid)
Select applet by it's AID It's method must be called before start working with applet instance |
byte[] |
transmitCommand(byte[] data)
Transmit APDU to previous selected applet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JavaCardRemoteClient(String serverHost, int serverIp) throws RemoteException, NotBoundException
RemoteException
NotBoundException
Method Detail |
---|
public AID loadApplet(AID aid, String appletClassName) throws SystemException
JavaCardInterface
Applet
into Simulator
loadApplet
in interface JavaCardInterface
aid
- applet aid
AID
SystemException
- if appletClass
not instanceof
javacard.framework.Applet
public AID loadApplet(AID aid, String appletClassName, byte[] appletJarContents) throws SystemException
JavaCardInterface
Applet
into Simulator
loadApplet
in interface JavaCardInterface
aid
- applet aidappletClassName
- fully qualified applet class name StrinappletJarContents
- contains a byte array containing a jar file with an applet and its dependent classes
AID
SystemException
- if appletClass
not instanceof
javacard.framework.Applet
public AID createApplet(AID aid, byte[] bArray, short bOffset, byte bLength) throws SystemException
JavaCardInterface
Applet
instance in Simulator
createApplet
in interface JavaCardInterface
aid
- applet aidbArray
- the array containing installation parametersbOffset
- the starting offset in bArraybLength
- the length in bytes of the parameter data in bArray
AID
SystemException
- if exception in Applet.install(..)
method occurs.public AID installApplet(AID aid, String appletClassName, byte[] bArray, short bOffset, byte bLength) throws SystemException
JavaCardInterface
Applet
into Simulator.
This method is equal to:
loadApplet(...);
createApplet(...);
installApplet
in interface JavaCardInterface
aid
- applet aid or nullappletClassName
- fully qualified applet class name StrinbArray
- the array containing installation parametersbOffset
- the starting offset in bArraybLength
- the length in bytes of the parameter data in bArray
AID
SystemException
- if appletClass
not instanceof
javacard.framework.Applet
public AID installApplet(AID aid, String appletClassName, byte[] appletJarContents, byte[] bArray, short bOffset, byte bLength) throws SystemException
JavaCardInterface
Applet
into Simulator.
This method is equal to:
loadApplet(...);
createApplet(...);
installApplet
in interface JavaCardInterface
aid
- applet aid or nullappletClassName
- fully qualified applet class name StrinappletJarContents
- Contains a byte array containing a jar file with an applet and its dependent classesbArray
- the array containing installation parametersbOffset
- the starting offset in bArraybLength
- the length in bytes of the parameter data in bArray
AID
SystemException
- if appletClass
not instanceof
javacard.framework.Applet
public boolean selectApplet(AID aid)
JavaCardInterface
selectApplet
in interface JavaCardInterface
aid
- appletId
public byte[] getATR()
CardInterface
getATR
in interface CardInterface
public byte[] transmitCommand(byte[] data)
CardInterface
transmitCommand
in interface CardInterface
CommandAPDU
,
ResponseAPDU
public void reset()
CardInterface
reset
in interface CardInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |