From 6a72aee4ceb27b015c76d8fda471f6fa998114f9 Mon Sep 17 00:00:00 2001 From: pdanner Date: Mon, 13 Dec 2010 12:11:23 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@705 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../egiz/pdfas/api/verify/VerifyAfterAnalysisParameters.java | 12 ++++++++++++ .../api/verify/VerifyAfterReconstructXMLDsigParameters.java | 12 ++++++++++++ .../java/at/gv/egiz/pdfas/api/verify/VerifyParameters.java | 6 ++++-- 3 files changed, 28 insertions(+), 2 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterAnalysisParameters.java b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterAnalysisParameters.java index 836bc13..45e7e98 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterAnalysisParameters.java +++ b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterAnalysisParameters.java @@ -131,4 +131,16 @@ public class VerifyAfterAnalysisParameters return verifySignatureIndex; } + /** + * @see VerifyParameters#setSuppressVerifyExceptions(boolean) + * @param suppress + */ + public void setSuppressVerifyExceptions(boolean suppress) { + VerifyParameters.setSuppressVerify(suppress); + } + + public boolean isSuppressVerifyExceptions() { + return VerifyParameters.isSuppressVerifyExceptions(); + } + } diff --git a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterReconstructXMLDsigParameters.java b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterReconstructXMLDsigParameters.java index 24bba20..b490848 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterReconstructXMLDsigParameters.java +++ b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyAfterReconstructXMLDsigParameters.java @@ -128,4 +128,16 @@ public class VerifyAfterReconstructXMLDsigParameters { return verifySignatureIndex; } + /** + * @see VerifyParameters#setSuppressVerifyExceptions(boolean) + * @param suppress + */ + public void setSuppressVerifyExceptions(boolean suppress) { + VerifyParameters.setSuppressVerify(suppress); + } + + public boolean isSuppressVerifyExceptions() { + return VerifyParameters.isSuppressVerifyExceptions(); + } + } diff --git a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyParameters.java b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyParameters.java index 9cc86a7..b9514ac 100644 --- a/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyParameters.java +++ b/src/main/java/at/gv/egiz/pdfas/api/verify/VerifyParameters.java @@ -210,7 +210,7 @@ public class VerifyParameters * @param suppress */ public void setSuppressVerifyExceptions(boolean suppress) { - suppressVerifyExceptions.set(new Boolean(suppress)); + setSuppressVerify(suppress); } /** @@ -222,6 +222,8 @@ public class VerifyParameters return ((Boolean) suppressVerifyExceptions.get()).booleanValue(); } - + static void setSuppressVerify(boolean suppress) { + suppressVerifyExceptions.set(new Boolean(suppress)); + } } -- cgit v1.2.3