Java Card Application Development

By Darryl Barnes

Dr. Dobb's Journal February 1999

public static void install(APDU _apdu)
{
        Loyalty loyalty = new Loyalty();
        // initialize user PIN
        loyalty.pin = new OwnerPIN((byte)5, PIN_LENGTH);
        loyalty.pin.updateAndUnblock(baPINValue, (short)0, PIN_LENGTH);
        // register the applet
        loyalty.register();
}

Example 2: The install() method.

Back to Article


Copyright © 1999, Dr. Dobb's Journal