From 42eee365f6b0a99050493796546a5dd98665e500 Mon Sep 17 00:00:00 2001 From: clemenso Date: Thu, 18 Nov 2010 17:00:06 +0000 Subject: min_config_version now 1.3.4-SNAPSHOT to update all previous (buggy) 1.3.3 configs Issue #MOCCA-760 - forced configuration dir update reinstalls old config files git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@839 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/smcc/LIEZertifikatCard.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java') diff --git a/smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java b/smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java index 70a35685..c4324773 100644 --- a/smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java +++ b/smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java @@ -115,14 +115,26 @@ public class LIEZertifikatCard extends AbstractSignatureCard implements Signatur byte[] ef_qcert = null; for (CIOCertificate cioCertificate : ef_cd.getCIOs()) { String label = cioCertificate.getLabel(); - //"TEST LLV APO 2s Liechtenstein Post Qualified CA ID" + //"Name (qualified signature" if (label != null && label.toLowerCase() - .contains("liechtenstein post qualified ca id")) { + .contains("qualified signature")) { ef_qcert = cioCertificate.getEfidOrPath(); + log.debug("found certificate: {} (fid={})", label, ef_qcert); } } - + if (ef_qcert == null) { + for (CIOCertificate cioCertificate : ef_cd.getCIOs()) { + String label = cioCertificate.getLabel(); + //"TEST LLV APO 2s Liechtenstein Post Qualified CA ID" + if (label != null && label.toLowerCase() + .contains("liechtenstein post qualified ca id")) { + ef_qcert = cioCertificate.getEfidOrPath(); + log.debug("found certificate: {} (fid={})", label, ef_qcert); + } + } + } + if (ef_qcert == null) { throw new NotActivatedException(); } -- cgit v1.2.3