diff options
author | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2019-12-02 10:11:51 +0100 |
---|---|---|
committer | Andreas Abraham <andreas.abraham@egiz.gv.at> | 2019-12-02 10:11:51 +0100 |
commit | eb8993049ab6341152daa0f2e6a0650be38e8843 (patch) | |
tree | 83ba1919baf498dacc3ca87e7343607c64361eea /pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover | |
parent | 53edf26013caebbbabdb4257f18a604954b85701 (diff) | |
download | pdf-over-eb8993049ab6341152daa0f2e6a0650be38e8843.tar.gz pdf-over-eb8993049ab6341152daa0f2e6a0650be38e8843.tar.bz2 pdf-over-eb8993049ab6341152daa0f2e6a0650be38e8843.zip |
PDFAS4Signer removed unused signature table position coordinates
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover')
-rw-r--r-- | pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java b/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java index e04022e8..abab10bf 100644 --- a/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java +++ b/pdf-over-signer/pdf-over-sigpdfas4/src/main/java/at/asit/pdfover/signer/pdfas/PdfAs4Signer.java @@ -61,7 +61,6 @@ public class PdfAs4Signer implements Signer { String sigProfile = sign_para.getPdfAsSignatureProfileId(); String sigEmblem = (sign_para.getEmblem() == null ? null : sign_para.getEmblem().getFileName()); String sigNote = sign_para.getProperty("SIG_NOTE"); - //String sigPos = sign_para.getPdfAsSignaturePosition(); //TODO just for testing PdfAs pdfas = PdfAs4Helper.getPdfAs(); Configuration config = pdfas.getConfiguration(); @@ -77,7 +76,6 @@ public class PdfAs4Signer implements Signer { ByteArrayOutputStream output = new ByteArrayOutputStream(); DataSource input = new ByteArrayDataSource(parameter.getInputDocument().getByteArray()); SignParameter param = PdfAsFactory.createSignParameter(config, input, output); -// param.setSignaturePosition(sigPos); //TODO just for testing param.setSignatureProfileId(sigProfile); String id = UUID.randomUUID().toString(); param.setTransactionId(id); @@ -111,7 +109,6 @@ public class PdfAs4Signer implements Signer { SignParameter param = sstate.getSignParameter(); Configuration config = param.getConfiguration(); -// log.debug("Use base64 request? " + sstate.getUseBase64Request()); config.setValue(IConfigurationConstants.SL_REQUEST_TYPE, sstate.getUseBase64Request() ? IConfigurationConstants.SL_REQUEST_TYPE_BASE64 : @@ -130,32 +127,10 @@ public class PdfAs4Signer implements Signer { pdfas.sign(param); - // Preparing Result Response SignResultImpl result = new SignResultImpl(); - -// // Set Signer Certificate -// result.setSignerCertificate(..); - - // Set Signature position - - //TODO just for testing -// TablePos tp = new TablePos(param.getSignaturePosition()); -// SignaturePosition sp; -// if (tp.isXauto() && tp.isYauto()) -// sp = new SignaturePosition(); -// else if (tp.isPauto()) -// sp = new SignaturePosition(tp.getPosX(), tp.getPosY()); -// else -// sp = new SignaturePosition(tp.getPosX(), tp.getPosY(), tp.getPage()); -// result.setSignaturePosition(sp); - - // Set signed Document result.setSignedDocument(new ByteArrayDocumentSource(sstate.getOutput().toByteArray())); return result; } -// catch (PdfAsException e) { //TODO just for testing -// throw new SignatureException(e); -// } catch (PDFASError e) { throw new SignatureException(e); } |