diff options
author | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-12-03 14:51:43 +0000 |
---|---|---|
committer | pdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2010-12-03 14:51:43 +0000 |
commit | dcb977941413603d4c6029ff5c22741d8ebbcea0 (patch) | |
tree | eda3d8e93fdcd49ff2e8c3aec6b351a809ec775a /src/main/java/at/gv/egiz/pdfas/impl/api | |
parent | 3e32cdf2bb1918cd02be37873e2e6282b697e32e (diff) | |
download | pdf-as-3-dcb977941413603d4c6029ff5c22741d8ebbcea0.tar.gz pdf-as-3-dcb977941413603d4c6029ff5c22741d8ebbcea0.tar.bz2 pdf-as-3-dcb977941413603d4c6029ff5c22741d8ebbcea0.zip |
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@668 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/impl/api')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java index c0639a3..90e7986 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java @@ -11,7 +11,6 @@ import java.util.List; import java.util.Properties;
import java.util.Vector;
-import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.math.NumberUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -65,6 +64,7 @@ import at.gv.egiz.pdfas.utils.ConfigUtils; import at.knowcenter.wag.egov.egiz.PdfAS;
import at.knowcenter.wag.egov.egiz.PdfASID;
import at.knowcenter.wag.egov.egiz.cfg.SettingsReader;
+import at.knowcenter.wag.egov.egiz.exceptions.ConnectorException;
import at.knowcenter.wag.egov.egiz.exceptions.OutOfMemoryException;
import at.knowcenter.wag.egov.egiz.exceptions.PDFDocumentException;
import at.knowcenter.wag.egov.egiz.exceptions.PresentableException;
@@ -572,8 +572,15 @@ public class PdfAsObject implements PdfAs for (int i = 0; i < ar.getSignatures().size(); i++)
{
SignatureInformation si = (SignatureInformation)ar.getSignatures().get(i);
- XMLDsigData dsigData = XMLDsigReconstructor.reconstruct(si, reconstructXMLDsigParameters.getSignatureDevice());
- extendedSignatureInfos.add(new ExtendedSignatureInformation(si, dsigData));
+ XMLDsigData dsigData;
+ try {
+ dsigData = XMLDsigReconstructor.reconstruct(si, reconstructXMLDsigParameters.getSignatureDevice());
+ extendedSignatureInfos.add(new ExtendedSignatureInformation(si, dsigData));
+ } catch (ConnectorException e) {
+ // don't care for connector exceptions because of mutli signs. they are handled during verify
+ extendedSignatureInfos.add(new ExtendedSignatureInformation(si, null));
+ }
+
}
return new ReconstructXMLDsigResult().setExtendedSignatures(extendedSignatureInfos);
}
|