diff options
author | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-07-07 08:28:23 +0200 |
---|---|---|
committer | Alexander Marsalek <amarsalek@iaik.tugraz.at> | 2021-07-07 08:28:44 +0200 |
commit | 7713e14c11d1952f2b572c22e9c976be891815fb (patch) | |
tree | c3b18127f17c5814d60990c8632c6240833aee64 | |
parent | 158ecb23383c67145833306adb5030dfa0fba620 (diff) | |
download | pdf-as-4-7713e14c11d1952f2b572c22e9c976be891815fb.tar.gz pdf-as-4-7713e14c11d1952f2b572c22e9c976be891815fb.tar.bz2 pdf-as-4-7713e14c11d1952f2b572c22e9c976be891815fb.zip |
Workaround for issue #51
-rw-r--r-- | build.gradle | 2 | ||||
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateAndRequestParameterResolver.java | 18 |
2 files changed, 18 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle index 7ef1711c..679faf5c 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ buildscript { allprojects { apply plugin: "com.github.ben-manes.versions" repositories { mavenCentral() } - version = '4.2.0' + version = '4.2.0-signatureVerificationPortal' } configurations { diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateAndRequestParameterResolver.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateAndRequestParameterResolver.java index c53a9a4f..dd9a396a 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateAndRequestParameterResolver.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/CertificateAndRequestParameterResolver.java @@ -50,14 +50,30 @@ public class CertificateAndRequestParameterResolver implements IResolver { public CertificateAndRequestParameterResolver(X509Certificate certificate, OperationStatus operationStatus) { this.certificate = certificate; + MemberAccess memberAccess = new MemberAccess() { + @Override + public Object setup(Map context, Object target, Member member, String propertyName) { + return null; + } + + @Override + public void restore(Map context, Object target, Member member, String propertyName, Object state) { + + } - MemberAccess memberAccess = new AbstractMemberAccess() { @Override public boolean isAccessible(Map context, Object target, Member member, String propertyName) { int modifiers = member.getModifiers(); return Modifier.isPublic(modifiers); } }; +// MemberAccess memberAccess = new AbstractMemberAccess() { +// @Override +// public boolean isAccessible(Map context, Object target, Member member, String propertyName) { +// int modifiers = member.getModifiers(); +// return Modifier.isPublic(modifiers); +// } +// }; this.ctx = new OgnlContext(null, null, memberAccess); |