Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

PIN_TRY_COUNTER

JavaCard Applet Development Related Questions and Answers.
vishalxz
Posts: 3
Joined: Wed May 09, 2018 1:37 am
Points :132
Contact:

PIN_TRY_COUNTER

Post by vishalxz » Sat May 19, 2018 4:28 am

can any one tell how to block pin in java card if pin retry counter is zero and how to decrease pin try counter.

Thanks in advance

wumindejia
Posts: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: PIN_TRY_COUNTER

Post by wumindejia » Sun May 20, 2018 11:33 pm

You can send the command of unblock pin or reload pin. The function is not implemented in the "WalletDemoApplet". You can only uninstall the instance.

vishalxz
Posts: 3
Joined: Wed May 09, 2018 1:37 am
Points :132
Contact:

Re: PIN_TRY_COUNTER

Post by vishalxz » Mon May 21, 2018 12:52 am

sir can u refer any example...to block pin and to decrease pin try counter.

wumindejia
Posts: 55
Joined: Thu Sep 22, 2016 5:05 am
Points :784
Contact:

Re: PIN_TRY_COUNTER

Post by wumindejia » Mon May 21, 2018 3:02 am

vishalxz wrote:sir can u refer any example...to block pin and to decrease pin try counter.

You can download LoyaltyCard-Applet-v1.0.zip in the viewtopic.php?f=17&t=1027, function is UpdatePin(APDU apdu).

jennyvenus
Posts: 24
Joined: Sun Aug 23, 2015 11:14 pm
Points :420
Contact:

Re: PIN_TRY_COUNTER

Post by jennyvenus » Mon May 21, 2018 3:05 am

for( i = 0; i < (byte)( pin_max_time - pin_current_time ); i++ )
{
PIN
.check( r, (short)0x00, (byte)0x10 );
}


check several time, pin will blocked

roundtable
Posts: 18
Joined: Mon Sep 18, 2017 9:52 pm
Points :240
Contact:

Re: PIN_TRY_COUNTER

Post by roundtable » Mon May 21, 2018 4:12 am

please read documemt of javacard API: javacard.framework.OwnerPIN

to decrease try count, just call check(..) with wrong PIN, follwoing is fragment of method check ():

ublic boolean check(byte[] pin,
short offset,
byte length)
throws ArrayIndexOutOfBoundsException,
NullPointerException
Compares pin against the PIN value. If they match and the PIN is not blocked, it sets the validated flag and resets the try counter to its maximum. If it does not match, it decrements the try counter and, if the counter has reached zero, blocks the PIN. Even if a transaction is in progress, update of internal state - the try counter, the validated flag, and the blocking state, shall not participate in the transaction.

if you want unblock PIN, just call resetAndUnblock()

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: Google [Bot] and 18 guests

JavaCard OS : Disclaimer