|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.licel.jcardsim.base.Simulator
public class Simulator
Main class for deal with Applets
| Constructor Summary | |
|---|---|
Simulator()
Construct Simulator object and init base systems |
|
| 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,
Class appletClass)
Install Applet into Simulator without installing data |
AID |
installApplet(AID aid,
Class appletClass,
byte[] bArray,
short bOffset,
byte bLength)
Install Applet into Simulator. |
AID |
installApplet(AID aid,
String appletClassName,
byte[] appletContents,
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,
Class appletClass)
Load 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 |
void |
resetRuntime()
|
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[] command)
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 Simulator()
| Method Detail |
|---|
public AID loadApplet(AID aid,
String appletClassName,
byte[] appletJarContents)
throws SystemException
JavaCardInterfaceApplet into Simulator
loadApplet in interface JavaCardInterfaceaid - 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 loadApplet(AID aid,
String appletClassName)
throws SystemException
JavaCardInterfaceApplet into Simulator
loadApplet in interface JavaCardInterfaceaid - applet aid
AID
SystemException - if appletClass not instanceof
javacard.framework.Applet
public AID loadApplet(AID aid,
Class appletClass)
throws SystemException
Applet into Simulator
aid - applet aidappletClass - applet class
AID
SystemException - if appletClass not instanceof
javacard.framework.Applet
public AID createApplet(AID aid,
byte[] bArray,
short bOffset,
byte bLength)
throws SystemException
JavaCardInterfaceApplet instance in Simulator
createApplet in interface JavaCardInterfaceaid - 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,
Class appletClass)
throws SystemException
Applet into Simulator without installing data
aid - applet aid or nullappletClass - applet class
AID
SystemException - if appletClass not instanceof
javacard.framework.Applet
public AID installApplet(AID aid,
Class appletClass,
byte[] bArray,
short bOffset,
byte bLength)
throws SystemException
Applet into Simulator. This method is equal to:
loadApplet(...);
createApplet(...);
aid - applet aid or nullappletClass - applet classbArray - 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[] bArray,
short bOffset,
byte bLength)
throws SystemException
JavaCardInterfaceApplet into Simulator.
This method is equal to:
loadApplet(...);
createApplet(...);
installApplet in interface JavaCardInterfaceaid - 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[] appletContents,
byte[] bArray,
short bOffset,
byte bLength)
throws SystemException
JavaCardInterfaceApplet into Simulator.
This method is equal to:
loadApplet(...);
createApplet(...);
installApplet in interface JavaCardInterfaceaid - applet aid or nullappletClassName - fully qualified applet class name StrinappletContents - 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)
throws SystemException
JavaCardInterface
selectApplet in interface JavaCardInterfaceaid - appletId
SystemException
public byte[] transmitCommand(byte[] command)
throws SystemException
CardInterface
transmitCommand in interface CardInterfaceSystemExceptionCommandAPDU,
ResponseAPDUpublic void reset()
CardInterface
reset in interface CardInterfacepublic final void resetRuntime()
public byte[] getATR()
CardInterface
getATR in interface CardInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||