summaryrefslogtreecommitdiff
path: root/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit
diff options
context:
space:
mode:
authorAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-12 14:50:02 +0100
committerAndreas Abraham <andreas.abraham@egiz.gv.at>2020-11-12 14:50:02 +0100
commit400529060ae22fb9741ff7eb1c0ce81807b2d5f5 (patch)
treef9b019e3be98dd2fccac859879c11c1002e72361 /pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit
parentbe14be9262cfd2a5f4b811fcbc9f5dfa8b43c3f6 (diff)
downloadpdf-over-400529060ae22fb9741ff7eb1c0ce81807b2d5f5.tar.gz
pdf-over-400529060ae22fb9741ff7eb1c0ce81807b2d5f5.tar.bz2
pdf-over-400529060ae22fb9741ff7eb1c0ce81807b2d5f5.zip
Implemented invisbile sigantures visability
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit')
-rw-r--r--pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java b/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java
index aed66b9b..57f36fbd 100644
--- a/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java
+++ b/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java
@@ -166,30 +166,28 @@ public class PdfAs4SignatureParameter extends SignatureParameter {
boolean useNote = (getProperty("SIG_NOTE") != null);
boolean usePdfACompat = (getSignaturePdfACompat());
-
//Add Signature Param here//
String profileId;
- if (PROFILE_VISIBILITY)
- {
- profileId = PROFILE_ID_BASE;
- profileId += (lang != null && lang.equals("en")) ?
- PROFILE_ID_LANG_EN : PROFILE_ID_LANG_DE;}
-
- else
+ if (!PROFILE_VISIBILITY || this.profile.equals("Unsichtbar"))
{
profileId ="INVISIBLE";
+ } else {
+ profileId = PROFILE_ID_BASE;
+ profileId += (lang != null && lang.equals("en")) ?
+ PROFILE_ID_LANG_EN : PROFILE_ID_LANG_DE;
}
+
if (useNote)
profileId += PROFILE_ID_NOTE;
if (usePdfACompat)
profileId += PROFILE_ID_PDFA;
- log.debug("Profile ID: " + profileId);
+ log.debug("Profile ID: {0}", profileId);
return profileId;
}
@@ -202,6 +200,7 @@ public class PdfAs4SignatureParameter extends SignatureParameter {
public String getSignatureProfile() {
return this.profile;
}
+
}