summaryrefslogtreecommitdiff
path: root/smcc/src/main/java
diff options
context:
space:
mode:
authormcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-06-14 07:37:44 +0000
committermcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-06-14 07:37:44 +0000
commit6a5f7f383a882f1d6136cb43478f2a13a62e29b8 (patch)
tree0adac6a6113bfb42470480abc90b2505a68507a1 /smcc/src/main/java
parent11c4521b8f0eb71dab627ed6e249a6300f95f92b (diff)
downloadmocca-6a5f7f383a882f1d6136cb43478f2a13a62e29b8.tar.gz
mocca-6a5f7f383a882f1d6136cb43478f2a13a62e29b8.tar.bz2
mocca-6a5f7f383a882f1d6136cb43478f2a13a62e29b8.zip
Fixed issue with EstEIDCard.
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@751 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smcc/src/main/java')
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/EstEIDCard.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/EstEIDCard.java b/smcc/src/main/java/at/gv/egiz/smcc/EstEIDCard.java
index 93c439a3..21028a8a 100644
--- a/smcc/src/main/java/at/gv/egiz/smcc/EstEIDCard.java
+++ b/smcc/src/main/java/at/gv/egiz/smcc/EstEIDCard.java
@@ -44,6 +44,8 @@ public class EstEIDCard extends AbstractSignatureCard {
public static final byte[] DF = { (byte) 0xEE, (byte) 0xEE };
public static final byte[] EF_CERT = { (byte) 0xDD, (byte) 0x0CE };
+
+ public static final byte[] MF = { (byte) 0x3F, (byte) 0x00 };
private static final PinInfo QS_PIN_SPEC = new PinInfo(5, 12, "[0-9]",
"at/gv/egiz/smcc/EstEIDCard", "qs.pin", KID_PIN_2, DF, PinInfo.UNKNOWN_RETRIES);
@@ -185,10 +187,9 @@ public class EstEIDCard extends AbstractSignatureCard {
}
-
protected void execSELECT_MF(CardChannel channel)
throws SignatureCardException, CardException {
- execSELECT(channel, 0x00, null);
+ execSELECT(channel, 0x00, MF);
}
protected void execSELECT_DF(CardChannel channel, byte[] fid)
@@ -204,12 +205,7 @@ public class EstEIDCard extends AbstractSignatureCard {
protected void execSELECT(CardChannel channel, int p1, byte[] fid)
throws SignatureCardException, CardException {
- CommandAPDU command;
- if (fid != null) {
- command = new CommandAPDU(0x00, 0xA4, p1, 0x0C, fid, 256);
- } else {
- command = new CommandAPDU(0x00, 0xA4, p1, 0x0C, 256);
- }
+ CommandAPDU command = new CommandAPDU(0x00, 0xA4, p1, 0x0C, fid, 256);
ResponseAPDU resp = channel.transmit(command);