public interface JavaCardInterface extends CardInterface
| Modifier and Type | Method and Description |
|---|---|
void |
changeProtocol(String protocol)
Switch protocol
Supported protocols are:
T=0 (alias: *)
T=1
T=CL, TYPE_A, T0 (alias: T=CL)
T=CL, TYPE_A, T1
T=CL, TYPE_B, T0
T=CL, TYPE_B, T1
|
javacard.framework.AID |
createApplet(javacard.framework.AID aid,
byte[] bArray,
short bOffset,
byte bLength)
Create
Applet instance in Simulator |
String |
getProtocol() |
javacard.framework.AID |
installApplet(javacard.framework.AID aid,
String appletClassName,
byte[] appletJarContents,
byte[] bArray,
short bOffset,
byte bLength)
Install
Applet into Simulator. |
javacard.framework.AID |
installApplet(javacard.framework.AID aid,
String appletClassName,
byte[] bArray,
short bOffset,
byte bLength)
Install
Applet into Simulator. |
javacard.framework.AID |
loadApplet(javacard.framework.AID aid,
String appletClassName)
Load
Applet into Simulator |
javacard.framework.AID |
loadApplet(javacard.framework.AID aid,
String appletClassName,
byte[] appletJarContents)
Load
Applet into Simulator |
boolean |
selectApplet(javacard.framework.AID aid)
Select applet by it's AID
It's method must be called before start working with applet instance
|
byte[] |
selectAppletWithResult(javacard.framework.AID aid)
Select applet by it's AID
It's method must be called before start working with applet instance
|
getATR, reset, transmitCommandjavacard.framework.AID loadApplet(javacard.framework.AID aid,
String appletClassName,
byte[] appletJarContents)
throws javacard.framework.SystemException
Applet into Simulatoraid - applet aidappletClassName - fully qualified applet class name StrinappletJarContents - contains a byte array containing a jar file with an applet and its dependent classesAIDjavacard.framework.SystemException - if appletClass not instanceof
javacard.framework.Appletjavacard.framework.AID loadApplet(javacard.framework.AID aid,
String appletClassName)
Applet into Simulatoraid - applet aidappletClassName - fully qualified applet class name StringAIDjavacard.framework.SystemException - if appletClass not instanceof
javacard.framework.Appletjavacard.framework.AID createApplet(javacard.framework.AID aid,
byte[] bArray,
short bOffset,
byte bLength)
throws javacard.framework.SystemException
Applet instance in Simulatoraid - applet aidbArray - the array containing installation parametersbOffset - the starting offset in bArraybLength - the length in bytes of the parameter data in bArrayAIDjavacard.framework.SystemException - if exception in Applet.install(..)
method occurs.javacard.framework.AID installApplet(javacard.framework.AID aid,
String appletClassName,
byte[] bArray,
short bOffset,
byte bLength)
throws javacard.framework.SystemException
Applet into Simulator.
This method is equal to:
loadApplet(...);
createApplet(...);
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 bArrayAIDjavacard.framework.SystemException - if appletClass not instanceof
javacard.framework.Appletjavacard.framework.AID installApplet(javacard.framework.AID aid,
String appletClassName,
byte[] appletJarContents,
byte[] bArray,
short bOffset,
byte bLength)
throws javacard.framework.SystemException
Applet into Simulator.
This method is equal to:
loadApplet(...);
createApplet(...);
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 bArrayAIDjavacard.framework.SystemException - if appletClass not instanceof
javacard.framework.Appletboolean selectApplet(javacard.framework.AID aid)
aid - appletIdbyte[] selectAppletWithResult(javacard.framework.AID aid)
aid - appletIdvoid changeProtocol(String protocol)
T=0 (alias: *)T=1T=CL, TYPE_A, T0 (alias: T=CL)T=CL, TYPE_A, T1T=CL, TYPE_B, T0T=CL, TYPE_B, T1protocol - protocol to useIllegalArgumentException - for unknown protocolsString getProtocol()
changeProtocol(String)