From a8af530c64d4612f5a15d66ce71bbfd1c3579ea0 Mon Sep 17 00:00:00 2001 From: clemenso Date: Tue, 12 May 2009 14:44:23 +0000 Subject: pinentry polling intervall to 20ms git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@353 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java | 5 +++-- smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'smcc') diff --git a/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java b/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java index 066880b0..0de6bb17 100644 --- a/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java +++ b/smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java @@ -31,6 +31,7 @@ import org.apache.commons.logging.LogFactory; * @author Clemens Orthacker */ public class DefaultReader implements CCID { + public static final int PIN_ENTRY_POLLING_INTERVAL = 20; public static final byte bEntryValidationCondition = 0x02; // validation key pressed public static final byte bTimeOut = 0x3c; // 60sec (= max on ReinerSCT) @@ -302,7 +303,7 @@ public class DefaultReader implements CCID { if (resp == (byte) 0x00) { synchronized(this) { try { - wait(200); + wait(PIN_ENTRY_POLLING_INTERVAL); } catch (InterruptedException ex) { log.error("interrupted in VERIFY_PIN"); } @@ -349,7 +350,7 @@ public class DefaultReader implements CCID { if (resp == (byte) 0x00) { synchronized(this) { try { - wait(10); + wait(PIN_ENTRY_POLLING_INTERVAL); } catch (InterruptedException ex) { log.error("interrupted in MODIFY_PIN"); } diff --git a/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java b/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java index 1e3bdce2..ae21e5e0 100644 --- a/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java +++ b/smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java @@ -30,6 +30,11 @@ public class ReaderFactory { String name = ct.getName(); if (name != null) { name = name.toLowerCase(); + //ReinerSCT: http://support.reiner-sct.de/downloads/LINUX + // http://www.linux-club.de/viewtopic.php?f=61&t=101287&start=0 + //old: REINER SCT CyberJack 00 00 + //new (CCID): 0C4B/0300 Reiner-SCT cyberJack pinpad(a) 00 00 + //display: REINER SCT CyberJack 00 00 if(name.startsWith("gemplus gempc pinpad")) { return new GemplusGemPCPinpad(icc, ct); } else if (name.startsWith("omnikey cardman 3621")) { -- cgit v1.2.3