| This is a base class for all SAT applets. It provides shareable
interface, local APDU buffer creation, local instance of the Toolkit
Exception. The 'process' method should be never invoked and
its overriding not needed.
Derived SAT applet can look like:
public class SATApplet extends SATBaseApplet {
private SATApplet() {
ToolkitRegistry reg;
register();
reg = ToolkitRegistry.getEntry();
reg.setEvent(EVENT_XXXXX);
}
public static void install(byte[] bArray, short bOffset, byte bLength) {
new SATApplet();
}
public void processToolkit(byte event) {
switch (event) {
case EVENT_XXXXX:
break;
}
}
}
|