I've a smart card applet class Purse, there are some static variable CLA_PURSE, INS_GET_BALANCE and a method getBalance just as follow:

public class Purse extends javacard.framework.Applet {

       private final static byte CLA_PURSE        = (byte)0x90;
       private final static byte INS_GET_BALANCE  = (byte)0x10;
                            .......

       public void process(APDU apdu) throws ISOException {
                           .......
       }

       private void getBalance( APDU apdu ) {
                            .......
       }
}

If i want to develop an OCF application to call the getBalance method, is that i must construct the CommandAPDU, 90 10 00 00 00, to call the getBalance method??

Is there any method that i could use OCF to call the getBalance function but no need to construct the Command APDU?

And, if i don't know the values of private final static byte CLA_PURSE and private final static byte INS_GET_BALANCE, then how can i construct the APDU or how can i get this value in the program?

Thanks for help!

Cecile

_________________________________________________________________
Get 10Mb extra storage for MSN Hotmail. Subscribe Now! http://join.msn.com/?pgmarket=en-hk



---
Visit the OpenCard web site at http://www.opencard.org/ for more
information on OpenCard---binaries, source code, documents.
This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
! [EMAIL PROTECTED]
! containing the word
! unsubscribe ! in the body.




Reply via email to