aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/pdfas
diff options
context:
space:
mode:
authorwprinz <wprinz@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-06-09 07:00:49 +0000
committerwprinz <wprinz@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2008-06-09 07:00:49 +0000
commitdef55a4c6f4a26b8ddbf2a9e892e36a67d9380f1 (patch)
tree73cced1ed1d183f457ecc07f05e52f873026ae42 /src/main/java/at/gv/egiz/pdfas
parentd96d448773b203b63f810abf9b69cfb376ebdc6d (diff)
downloadpdf-as-3-def55a4c6f4a26b8ddbf2a9e892e36a67d9380f1.tar.gz
pdf-as-3-def55a4c6f4a26b8ddbf2a9e892e36a67d9380f1.tar.bz2
pdf-as-3-def55a4c6f4a26b8ddbf2a9e892e36a67d9380f1.zip
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
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/PdfAsObject.java7
1 files changed, 7 insertions, 0 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 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))