aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 11:51:36 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-12-12 11:51:36 +0100
commit22c56e9d4b8c8ba6bea4993d7bd3cc0a83a23d8b (patch)
tree331b855082e9e7ff25297836f97234792ec617c6 /pdf-as-lib
parent49229a4f8480b497265eeb2372cb73d2a5ec010e (diff)
downloadpdf-as-4-22c56e9d4b8c8ba6bea4993d7bd3cc0a83a23d8b.tar.gz
pdf-as-4-22c56e9d4b8c8ba6bea4993d7bd3cc0a83a23d8b.tar.bz2
pdf-as-4-22c56e9d4b8c8ba6bea4993d7bd3cc0a83a23d8b.zip
added certificate serial number for OGNL resolver
Diffstat (limited to 'pdf-as-lib')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java2
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java2
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateResolver.java2
3 files changed, 5 insertions, 1 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java
index fc245592..89408bc8 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java
@@ -524,6 +524,8 @@ public class PdfAsImpl implements PdfAs, IConfigurationConstants {
.getDefaultPositioning();
}
+ logger.debug("using Positioning: " + posString);
+
boolean legacy32Position = signatureProfileConfiguration.getLegacy32Positioning();
TablePos tablePos = null;
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
index b8a0139a..b2d5207d 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/SignatureProfileConfiguration.java
@@ -20,7 +20,7 @@ public class SignatureProfileConfiguration extends SpecificBaseConfiguration
}
public String getDefaultPositioning() {
- String key = SIG_OBJECT + SEPERATOR + profileID + SEPERATOR + TABLE + SEPERATOR + POS;
+ String key = SIG_OBJECT + SEPERATOR + profileID + SEPERATOR + POS;
return this.configuration.getValue(key);
}
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateResolver.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateResolver.java
index 78dcbe23..7f8b0a0b 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateResolver.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateResolver.java
@@ -26,6 +26,8 @@ public class CertificateResolver implements IResolver {
this.certificate = certificate;
this.ctx = new OgnlContext();
+ this.ctx.put("sn", this.certificate.getSerialNumber().toString());
+
try {
Map<String, String> issuerDNMap = DNUtils.dnToMap(certificate.getIssuerDN().getName());
this.ctx.put("issuer", issuerDNMap);