FileDocCategorySizeDatePackage
PurseApplet.javaAPI DocJava Card1055Wed Mar 22 21:07:24 GMT 2006com.sun.javacard.samples.RMIDemo

PurseApplet

public class PurseApplet extends javacard.framework.Applet
author
vo113324

Fields Summary
private Dispatcher
disp
private RemoteService
serv
private Remote
purse
Constructors Summary
public PurseApplet()

        purse = new PurseImpl();
        
        disp = new Dispatcher( (short) 1);
        serv = new RMIService(purse);
        disp.addService(serv, Dispatcher.PROCESS_COMMAND);
        
        register();
    
Methods Summary
public static voidinstall(byte[] aid, short s, byte b)

        new PurseApplet();
    
public voidprocess(javacard.framework.APDU apdu)

        
        disp.process(apdu);