Page 1 of 1

Why can't PIN_TRY_LIMIT be reset ?

Posted: Wed Dec 30, 2015 4:18 am
by ordane
I have developed an applet running on Java card 3.0.4. But I run into a problem: the retry counter of PIN doesn't reset its value.
I set the PIN_TRY_LIMIT value to 0x03.

Here are my test steps.
1. Select the applet.
2. Verify PIN with wrong data deliberately(twice)
3. Call ResetRetryCounter() method to reset the PIN_TRY_LIMIT value(0x03).
4. Get the PIN_TRY_LIMIT value.The result is 0x01, but the expected result value is 0x03.

Where did I make the mistake? Why can't PIN_TRY_LIMIT be reset ?

Re: Why can't PIN_TRY_LIMIT be reset ?

Posted: Wed Dec 30, 2015 9:57 am
by UNKNwYSHSA
The PIN class is implemented by yourself? Isn't the javacard.framework.OwnerPIN class?