summaryrefslogtreecommitdiff
path: root/smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java
diff options
context:
space:
mode:
Diffstat (limited to 'smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java')
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/LIEZertifikatCard.java18
1 files changed, 15 insertions, 3 deletions
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();
}