FileDocCategorySizeDatePackage
PhotoCardApplet.javaAPI DocJava Card1138Wed Mar 22 21:07:24 GMT 2006com.sun.javacard.samples.photocard

PhotoCardApplet

public class PhotoCardApplet extends javacard.framework.Applet
author
oscarm

Fields Summary
private Dispatcher
disp
private RemoteService
serv
private Remote
photoStorage
Constructors Summary
public PhotoCardApplet()

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

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

        
        disp.process(apdu);