diff options
author | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-02 13:59:54 +0200 |
---|---|---|
committer | Jakob Heher <jakob.heher@iaik.tugraz.at> | 2022-08-02 13:59:54 +0200 |
commit | 2513de9079b48864c89d7a633a0a4fa43d2f313f (patch) | |
tree | 657ca1d8916206b9fe35c44ccd60524fa3c26c7d /pdf-over-signer | |
parent | 80f046ab49015cf9cffca11597b9ee57d8a998bc (diff) | |
download | pdf-over-2513de9079b48864c89d7a633a0a4fa43d2f313f.tar.gz pdf-over-2513de9079b48864c89d7a633a0a4fa43d2f313f.tar.bz2 pdf-over-2513de9079b48864c89d7a633a0a4fa43d2f313f.zip |
cleanup
Diffstat (limited to 'pdf-over-signer')
-rw-r--r-- | pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java index b54064ab..99b6e238 100644 --- a/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java +++ b/pdf-over-signer/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4SignatureParameter.java @@ -41,27 +41,10 @@ import at.asit.pdfover.commons.Profile; * Implementation of SignatureParameter for PDF-AS 4 Library */ public class PdfAs4SignatureParameter extends SignatureParameter { - /** - * The profile ID extension for the German signature block - */ - private static final String PROFILE_ID_LANG_DE = "_DE"; - /** - * The profile ID extension for the English signature block - */ - private static final String PROFILE_ID_LANG_EN = "_EN"; - /** - * The profile ID extension for the signature note - */ - private static final String PROFILE_ID_NOTE = "_NOTE"; - /** - * The profile ID extension for PDF/A compatibility - */ - private static final String PROFILE_ID_PDFA = "_PDFA"; - - private static final String PROFILE_ID_RECOMMENDED = "_RECOMMENDED"; /** - * Visibility of signature block + * this is set by CliArguments.InvisibleProfile + * TODO: this is a no good, very bad, hack */ public static boolean PROFILE_VISIBILITY = true; @@ -191,7 +174,7 @@ public class PdfAs4SignatureParameter extends SignatureParameter { case AMTSSIGNATURBLOCK: profileId = this.profile; profileId += getLangProfilePart(lang); - profileId += PROFILE_ID_RECOMMENDED; + profileId += "_RECOMMENDED"; return profileId; default: profileId = this.profile; @@ -200,17 +183,17 @@ public class PdfAs4SignatureParameter extends SignatureParameter { } if (useNote) - profileId += PROFILE_ID_NOTE; + profileId += "_NOTE"; if (usePdfACompat) - profileId += PROFILE_ID_PDFA; + profileId += "_PDFA"; log.debug("Profile ID: {}", profileId); return profileId; } private static String getLangProfilePart(String lang) { - return ("en".equals(lang)) ? PROFILE_ID_LANG_EN : PROFILE_ID_LANG_DE; + return ("en".equals(lang)) ? "_EN" : "_DE"; } @Override |