summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-02 14:20:38 +0200
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-08-02 14:20:38 +0200
commit9db67a0963f01d5c893d76c8e746272a53703d91 (patch)
treea59c979806e3ecf208b6b233e85d14c9cfa32392 /pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration
parent62a3115ce4d55a7a3b3fbf202bac0fff85dc412b (diff)
downloadpdf-over-9db67a0963f01d5c893d76c8e746272a53703d91.tar.gz
pdf-over-9db67a0963f01d5c893d76c8e746272a53703d91.tar.bz2
pdf-over-9db67a0963f01d5c893d76c8e746272a53703d91.zip
YAGNI: newParameter factory
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
index c5ad6f5a..b00dc00a 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/composites/configuration/SimpleConfigurationComposite.java
@@ -68,6 +68,7 @@ import at.asit.pdfover.gui.workflow.config.ConfigurationDataInMemory;
import at.asit.pdfover.gui.workflow.states.State;
import at.asit.pdfover.signator.CachedFileNameEmblem;
import at.asit.pdfover.signator.SignatureParameter;
+import at.asit.pdfover.signer.pdfas.PdfAs4SignatureParameter;
import at.asit.pdfover.signer.pdfas.PdfAs4Signer;
/**
@@ -441,7 +442,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
ImageData logo = null;
try {
- SignatureParameter param = PdfAs4Signer.newParameter();
+ SignatureParameter param = new PdfAs4SignatureParameter();
if(this.configurationContainer.signatureNote != null && !this.configurationContainer.signatureNote.isEmpty()) {
param.setProperty("SIG_NOTE", this.configurationContainer.signatureNote);
}
@@ -555,7 +556,7 @@ public class SimpleConfigurationComposite extends ConfigurationCompositeBase {
void setSignatureProfileSetting(){
try {
- SignatureParameter param = PdfAs4Signer.newParameter();
+ SignatureParameter param = new PdfAs4SignatureParameter();
param.setSignatureProfile(this.configurationContainer.getSignatureProfile().name());
} catch (Exception e){