FileDocCategorySizeDatePackage
NullApp.javaAPI DocJava Card1478Wed Mar 22 21:07:26 GMT 2006com.sun.javacard.samples.NullApp

NullApp

public class NullApp extends Applet

Fields Summary
Constructors Summary
protected NullApp(APDU apdu)
Only this class's install method should create the applet object.

see
APDU
param
apdu the incoming APDU containing the INSTALL command.

        register();
    
Methods Summary
public static voidinstall(byte[] bArray, short bOffset, byte bLength)
Installs this applet.

see
APDU
param
apdu the incoming APDU containing the INSTALL command.
exception
ISOException with the response bytes per ISO 7816-4

        new NullApp(null);
    
public voidprocess(APDU apdu)
Returns <0x6D,INS> response status always.

see
APDU
param
apdu the incoming APDU containing the INSTALL command.
exception
ISOException with the response bytes per ISO 7816-4

        byte buffer[] = apdu.getBuffer();
        ISOException.throwIt(Util.makeShort((byte)(ISO7816.SW_INS_NOT_SUPPORTED>>8), buffer[1]));