From c9827ea54f9b66e60897c31e5b0e226fdd3e06d1 Mon Sep 17 00:00:00 2001 From: tknall Date: Fri, 15 Jan 2010 14:04:38 +0000 Subject: - fixing bug #411 - fixed invalid verification link in configuration - removed some needless log.info messages git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@553 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../wag/egov/egiz/pdf/BinarySignature.java | 2 +- .../wag/egov/egiz/pdf/ObjectExtractor.java | 9 +++++---- .../egiz/sig/connectors/moa/MOASoapConnection.java | 6 +++--- src/main/resources/DefaultConfiguration.zip | Bin 635287 -> 635285 bytes 4 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java index ef4e1c2..8cb0d42 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/BinarySignature.java @@ -232,7 +232,7 @@ public abstract class BinarySignature /** * The number placeholder that is used to give numbers a fixed length. */ - protected static final PdfNumber NUMBER_PLACEHOLDER = new PdfNumber(99999999); + protected static final PdfNumber NUMBER_PLACEHOLDER = new PdfNumber(999999999); /** * Extracts the signature text only. diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ObjectExtractor.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ObjectExtractor.java index 4516b6b..039df9c 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ObjectExtractor.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/ObjectExtractor.java @@ -31,7 +31,7 @@ public class ObjectExtractor { * If set true signature annotations are not extracted otherwise * all signatures except PDF-AS signatures are extracted. */ - private final static boolean SKIP_SIGNATURES = true; + private final static boolean SKIP_NON_PDFAS_SIGNATURES = false; /** * Find annotation objects in pdf documents @@ -54,9 +54,9 @@ public class ObjectExtractor { if (log.isTraceEnabled()) { log.trace("annotation def: " + dictToString(anno.getDictionary())); } - String ft = anno.getDictionary().getNameAsString("FT"); + String ft = anno.getDictionary().getNameAsString("FT"); if (ft != null && ft.equals("Sig")) { // skip signature widgets - if (SKIP_SIGNATURES) { + if (SKIP_NON_PDFAS_SIGNATURES) { log.debug("found signature widged, skip extraction"); continue; } else { @@ -66,7 +66,8 @@ public class ObjectExtractor { continue; } } - } + } + NonTextObjectInfo objInfo = new NonTextObjectInfo(); objInfo.setName(anno.getDictionary().getString( "NM" )); objInfo.setObjectType(NonTextObjectInfo.TYPE_ANNOTATION); diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java index 38998c4..1eaa6cb 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/sig/connectors/moa/MOASoapConnection.java @@ -80,10 +80,10 @@ public final class MOASoapConnection { try { - if (log.isInfoEnabled()) + if (log.isDebugEnabled()) { - log.info(serviceMode); - log.info(endpointURL); + log.debug(serviceMode); + log.debug(endpointURL); } // Parser/DOMBuilder instanzieren DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); diff --git a/src/main/resources/DefaultConfiguration.zip b/src/main/resources/DefaultConfiguration.zip index 74aac6c..c248b9a 100644 Binary files a/src/main/resources/DefaultConfiguration.zip and b/src/main/resources/DefaultConfiguration.zip differ -- cgit v1.2.3