aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib
diff options
context:
space:
mode:
authorThomas <>2023-06-22 21:14:21 +0200
committerThomas <>2023-06-22 21:14:21 +0200
commitd855cc609099b72a0bb20fafb87da79a5478068d (patch)
treeea750dc06755d467cd55d64b516bfeaeed9a738b /moaSig/moa-sig-lib
parent2162d750da0cecf5ed6a0a63928e7b4e4d65b884 (diff)
downloadmoa-sig-d855cc609099b72a0bb20fafb87da79a5478068d.tar.gz
moa-sig-d855cc609099b72a0bb20fafb87da79a5478068d.tar.bz2
moa-sig-d855cc609099b72a0bb20fafb87da79a5478068d.zip
fix(core): update cpxlevel validation lib to solve wrong key-usage validation
Diffstat (limited to 'moaSig/moa-sig-lib')
-rw-r--r--moaSig/moa-sig-lib/build.gradle2
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/util/AdESResultUtils.java6
2 files changed, 7 insertions, 1 deletions
diff --git a/moaSig/moa-sig-lib/build.gradle b/moaSig/moa-sig-lib/build.gradle
index 8774567..07f0c93 100644
--- a/moaSig/moa-sig-lib/build.gradle
+++ b/moaSig/moa-sig-lib/build.gradle
@@ -12,6 +12,8 @@ dependencies {
testImplementation project(path: ':common', configuration: 'testArtifacts')
api fileTree(dir: '../libs', include: '*.jar')
+ //api fileTree(dir: '../libs_debug', include: '*.jar')
+
api group: 'at.gv.egovernment.moa.sig', name: 'tsl-lib', version: '2.1.1'
api 'commons-logging:commons-logging:1.2'
api 'commons-io:commons-io:2.11.0'
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/util/AdESResultUtils.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/util/AdESResultUtils.java
index 23570cc..8e37b1c 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/util/AdESResultUtils.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/util/AdESResultUtils.java
@@ -112,7 +112,11 @@ public class AdESResultUtils {
minorInfo = "ERROR";
} else if (resultCode.getCode().equals(ResultCode.UNKNOWN_SUBFILTER)) {
minorInfo = "UNKNOWN_SUBFILTER";
-
+ } else if (resultCode.getCode().equals(ResultCode.CODE_NO_SIGNER_CERTIFICATE_FOUND)) {
+ minorInfo = "NO_SIGNER_CERTIFICATE_FOUND";
+
+
+
// pdf-as 3.x detection is removed from MOA-SP since 3.1.2
} else if (resultCode.getCode().equals(ResultCode.PDF_AS_SIGNATURE)) {
// minorInfo = "PDF_AS_SIGNATURE";