summaryrefslogtreecommitdiff
path: root/smcc/src/test/java/at
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-12-23 19:24:55 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-12-23 19:24:55 +0000
commitab05cb01a6c76fb280120246a5dd20ebc552aaa7 (patch)
tree862285031cc8aea277bfe715e1f60b193858ab3f /smcc/src/test/java/at
parent4d5495bf16ce4135abb7317503cf5fd8d0a44cde (diff)
downloadmocca-ab05cb01a6c76fb280120246a5dd20ebc552aaa7.tar.gz
mocca-ab05cb01a6c76fb280120246a5dd20ebc552aaa7.tar.bz2
mocca-ab05cb01a6c76fb280120246a5dd20ebc552aaa7.zip
refactor ObjectDirectory
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@855 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smcc/src/test/java/at')
-rw-r--r--smcc/src/test/java/at/gv/egiz/smcc/FINEIDTest.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/smcc/src/test/java/at/gv/egiz/smcc/FINEIDTest.java b/smcc/src/test/java/at/gv/egiz/smcc/FINEIDTest.java
index eef6f611..251728bd 100644
--- a/smcc/src/test/java/at/gv/egiz/smcc/FINEIDTest.java
+++ b/smcc/src/test/java/at/gv/egiz/smcc/FINEIDTest.java
@@ -1,5 +1,6 @@
package at.gv.egiz.smcc;
+import at.gv.egiz.smcc.cio.CIOCertificate;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
@@ -95,10 +96,10 @@ public class FINEIDTest extends AbstractSignatureCard {
// **** READ CERT ****
- for (int i = 0; i < ef_od.getEf_cd_list().size(); i++) {
+ for (int i = 0; i < ef_od.getCDReferences().size(); i++) {
FINEIDCIOCertificateDirectory ef_cd = new FINEIDCIOCertificateDirectory(
- ef_od.getEf_cd_list().get(i));
+ ef_od.getCDReferences().get(i));
try {
ef_cd.selectAndRead(channel);
@@ -158,11 +159,11 @@ public class FINEIDTest extends AbstractSignatureCard {
// **** VERIFY PIN ****
- byte[] prkdPath = ef_od.getEf_prkd();
+ byte[] prkdPath = ef_od.getPrKDReferences().get(0);
System.out.println("PRKD path: " + SMCCHelper.toString(prkdPath));
FINEIDCIOKeyDirectory ef_prkd = new FINEIDCIOKeyDirectory(ef_od
- .getEf_prkd());
+ .getPrKDReferences().get(0));
ef_prkd.selectAndRead(channel);
byte[] efKey = null;
@@ -181,10 +182,10 @@ public class FINEIDTest extends AbstractSignatureCard {
System.out.println("Key path: " + SMCCHelper.toString(efKey));
- byte[] aod = ef_od.getEf_aod();
+ byte[] aod = ef_od.getAODReferences().get(0);
System.out.println("AOD path: " + SMCCHelper.toString(aod));
- FINEIDAODirectory ef_aod = new FINEIDAODirectory(ef_od.getEf_aod());
+ FINEIDAODirectory ef_aod = new FINEIDAODirectory(ef_od.getAODReferences().get(0));
ef_aod.selectAndRead(channel);
byte[] pinPath = null;