From da3ee5b40063279bd652e9853e7b531a64f7aac8 Mon Sep 17 00:00:00 2001 From: knowcenter Date: Fri, 1 Jun 2007 08:32:54 +0000 Subject: solved the "SIG_NAME" fix git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@112 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../egiz/framework/signators/TextualSignator_1_0_0.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/main/java/at/knowcenter') diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/framework/signators/TextualSignator_1_0_0.java b/src/main/java/at/knowcenter/wag/egov/egiz/framework/signators/TextualSignator_1_0_0.java index f250b0d..7fe9e4f 100644 --- a/src/main/java/at/knowcenter/wag/egov/egiz/framework/signators/TextualSignator_1_0_0.java +++ b/src/main/java/at/knowcenter/wag/egov/egiz/framework/signators/TextualSignator_1_0_0.java @@ -31,6 +31,7 @@ import at.knowcenter.wag.egov.egiz.pdf.PositioningInstruction; import at.knowcenter.wag.egov.egiz.pdf.TablePos; import at.knowcenter.wag.egov.egiz.sig.SignatureDataImpl; import at.knowcenter.wag.egov.egiz.sig.SignatureObject; +import at.knowcenter.wag.egov.egiz.sig.signatureobject.SignatureObjectHelper; import com.lowagie.text.pdf.PdfPTable; @@ -111,18 +112,7 @@ public class TextualSignator_1_0_0 implements Signator iui.signed_signature_object.kz = getMyId().toString(); - SignatureObject so = new SignatureObject(); - so.setSigType(iui.signature_type); - so.initByType(); - so.setSignationDate(iui.signed_signature_object.getDate()); - so.setSignationIssuer(iui.signed_signature_object.getIssuer()); - so.setSignationSerialNumber(iui.signed_signature_object.getSerialNumber()); - so.setSignationValue(iui.signed_signature_object.getSignatureValue()); - so.setSignationIDs(iui.signed_signature_object.getSigID()); - so.setKZ(getMyId()); - - // fixed by tknall - so.setSignationName(iui.signed_signature_object.getName()); + SignatureObject so = SignatureObjectHelper.convertSignSignatureObjectToSignatureObject(iui.signed_signature_object, iui.signature_type); PdfPTable pdf_table = PdfAS.createPdfPTableFromSignatureObject(so); -- cgit v1.2.3