aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-asic
diff options
context:
space:
mode:
authortlenz <thomas.lenz@egiz.gv.at>2017-03-03 16:15:58 +0100
committertlenz <thomas.lenz@egiz.gv.at>2017-03-03 16:15:58 +0100
commitfc85ea3fa7675f626571eee42a91de7d7baab5b9 (patch)
tree567f051188f5ad0d13b5484d6ca7f0dc5a9e1ecd /moaSig/moa-asic
parent7eb7953e6930e8e7751a1c4db77335224e85bdeb (diff)
downloadmoa-sig-fc85ea3fa7675f626571eee42a91de7d7baab5b9.tar.gz
moa-sig-fc85ea3fa7675f626571eee42a91de7d7baab5b9.tar.bz2
moa-sig-fc85ea3fa7675f626571eee42a91de7d7baab5b9.zip
fix problem with ASiC-e containers and suspect filenames
Diffstat (limited to 'moaSig/moa-asic')
-rw-r--r--moaSig/moa-asic/src/main/java/at/gv/egiz/asic/impl/handler/ExtendedASiCXAdESHandler.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/moaSig/moa-asic/src/main/java/at/gv/egiz/asic/impl/handler/ExtendedASiCXAdESHandler.java b/moaSig/moa-asic/src/main/java/at/gv/egiz/asic/impl/handler/ExtendedASiCXAdESHandler.java
index 28b21a3..aee94eb 100644
--- a/moaSig/moa-asic/src/main/java/at/gv/egiz/asic/impl/handler/ExtendedASiCXAdESHandler.java
+++ b/moaSig/moa-asic/src/main/java/at/gv/egiz/asic/impl/handler/ExtendedASiCXAdESHandler.java
@@ -2,10 +2,16 @@ package at.gv.egiz.asic.impl.handler;
/**
* Created by Andreas Fitzek on 6/15/16.
+ *
+ * Updated by Thomas Lenz on 02/03/17
*/
public class ExtendedASiCXAdESHandler extends XAdESHandler {
@Override
protected boolean matches(String entryName) {
- return entryName.endsWith(".xml") && entryName.startsWith(FILE_META_INF) && entryName.contains("signature");
+ return entryName.endsWith(".xml")
+ && entryName.startsWith(FILE_META_INF)
+ && entryName.contains("signature")
+ && !entryName.contains("ASiCManifest")
+ && !entryName.contains("AsiCManifest");
}
}