summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/ccid/DefaultReader.java5
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/ccid/ReaderFactory.java5
2 files changed, 8 insertions, 2 deletions
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 <clemens.orthacker@iaik.tugraz.at>
*/
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")) {