Skip to Main Content

Java Card

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

6F00 error

843851Mar 9 2009 — edited Mar 13 2009
Hi guys, is it possible to cacth the reason of 6F00 status? If yes how could catch it?
any example would be appreciate.
thanks
        OwnerPIN mypin;

        private FirstApp(byte bArray[], short bOffset, byte bLength){

                backSomething = new byte[BS_LENGTH];

                //Posso inserire il pin 3 volte prima che venga bloccato
                //la dimensione massima e' di 8 caratteri
                mypin = new OwnerPIN(PIN_TRY_LIMIT, MAX_PIN_SIZE);

                //setto il pin a un dato valore iniziale:
                byte pin[]={0x00,0x00,0x00,0x00};
                mypin.update (pin, (short) 0, (byte) 0x04);
                // informa la JCRE che l'istanza corrente dell'applet (this)
                // e' presente con l'AID this.AID
                register();
        }

        private void verifypin(APDU apdu){

                byte[] buffer = apdu.getBuffer();
                byte byteRead = (byte) apdu.setIncomingAndReceive();
                if ( mypin.check ( buffer, ISO7816.OFFSET_CDATA, byteRead ) == false )
                        ISOException.throwIt(SW_VERIFICATION_FAILED);

        }
CLA: 80, INS: b8, P1: 00, P2: 00, Lc: 0c, 0a, a0, 00, 00, 00, 62, 03, 01, 0c, 06, 01, 00, Le: 0a, a0, 00, 00, 00, 62, 03, 01, 0c, 06, 01, SW1: 90, SW2: 00
CLA: 00, INS: a4, P1: 04, P2: 00, Lc: 0a, a0, 00, 00, 00, 62, 03, 01, 0c, 06, 01, Le: 00, SW1: 90, SW2: 00
CLA: b0, INS: 30, P1: 20, P2: 30, Lc: 04, 00, 00, 00, 00, Le: 00, SW1: 6f, SW2: 00
CLA: b0, INS: 20, P1: 20, P2: 30, Lc: 04, 00, 00, 00, 00, Le: 00, SW1: 6f, SW2: 00
CLA: b0, INS: 15, P1: 20, P2: 30, Lc: 02, 00, 00, Le: 00, SW1: 65, SW2: 00
Edited by: emanuele.g on Mar 9, 2009 1:46 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2009
Added on Mar 9 2009
12 comments
688 views