From def55a4c6f4a26b8ddbf2a9e892e36a67d9380f1 Mon Sep 17 00:00:00 2001 From: wprinz Date: Mon, 9 Jun 2008 07:00:49 +0000 Subject: Default-Profile auch im API auswerten, wenn Profil-Id == null git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@276 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/at') 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 ce6f776..b744d2a 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 @@ -210,6 +210,13 @@ public class PdfAsObject implements PdfAs CheckHelper.checkSignParameters(signParameters); signParameters.setDocument(PdfAS.applyStrictMode(signParameters.getDocument())); + + if (signParameters.getSignatureProfileId() == null) + { + SettingsReader settings = SettingsReader.getInstance(); + String defaultProfile = settings.getValueFromKey(SignatureTypes.DEFAULT_TYPE); + signParameters.setSignatureProfileId(defaultProfile); + } PdfASID signatorId = null; if (signParameters.getSignatureType().equals(Constants.SIGNATURE_TYPE_BINARY)) -- cgit v1.2.3