summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java1
-rw-r--r--pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java17
2 files changed, 9 insertions, 9 deletions
diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java
index edf50b23..b03790b3 100644
--- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java
+++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java
@@ -226,4 +226,5 @@ public abstract class SignatureParameter {
public abstract void setSignatureProfile(String profile);
public abstract String getSignatureProfile();
+
}
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;
}
+
}