summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_moa-sig
diff options
context:
space:
mode:
authorThomas <>2022-08-11 22:02:16 +0200
committerThomas <>2022-08-11 22:02:16 +0200
commitd0309843cf6775c215bb132283116b6442b082d6 (patch)
tree3840a8d340a0d5827d401ed9fa17b9949e5cf1e9 /eaaf_modules/eaaf_module_moa-sig
parent7cd38fb12ca3329dee99d0032f7e3d4b1d7cc2ce (diff)
downloadEAAF-Components-d0309843cf6775c215bb132283116b6442b082d6.tar.gz
EAAF-Components-d0309843cf6775c215bb132283116b6442b082d6.tar.bz2
EAAF-Components-d0309843cf6775c215bb132283116b6442b082d6.zip
refact(core): move JoseUtils into 'eaaf-utils' module
Diffstat (limited to 'eaaf_modules/eaaf_module_moa-sig')
-rw-r--r--eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/SignatureVerificationService.java8
-rw-r--r--eaaf_modules/eaaf_module_moa-sig/src/main/resources/properties/status_messages_en.properties4
2 files changed, 7 insertions, 5 deletions
diff --git a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/SignatureVerificationService.java b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/SignatureVerificationService.java
index 79f39e65..1f8bf3b8 100644
--- a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/SignatureVerificationService.java
+++ b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eaaf/modules/sigverify/moasig/impl/SignatureVerificationService.java
@@ -96,12 +96,12 @@ public class SignatureVerificationService extends AbstractSignatureService
} catch (final MOAException e) {
log.warn("CMS signature verification has an error.", e);
- throw new MoaSigServiceException("service.03", new Object[] { e.toString() }, e);
+ throw new MoaSigServiceException("service.moasig.03", new Object[] { e.toString() }, e);
} catch (final CertificateEncodingException e) {
log.warn("Can NOT serialize X509 certificate from CMS/CAdES signature-verification response",
e);
- throw new MoaSigServiceException("service.03", new Object[] { e.toString() }, e);
+ throw new MoaSigServiceException("service.moasig.03", new Object[] { e.toString() }, e);
} finally {
tearDownContexts();
@@ -131,12 +131,12 @@ public class SignatureVerificationService extends AbstractSignatureService
} catch (final MOAException e) {
log.warn("PDF signature verification has an error.", e);
- throw new MoaSigServiceException("service.03", new Object[] { e.toString() }, e);
+ throw new MoaSigServiceException("service.moasig.03", new Object[] { e.toString() }, e);
} catch (final CertificateEncodingException e) {
log.warn("Can NOT serialize X509 certificate from PDF/PAdES signature-verification response",
e);
- throw new MoaSigServiceException("service.03", new Object[] { e.toString() }, e);
+ throw new MoaSigServiceException("service.moasig.03", new Object[] { e.toString() }, e);
} finally {
tearDownContexts();
diff --git a/eaaf_modules/eaaf_module_moa-sig/src/main/resources/properties/status_messages_en.properties b/eaaf_modules/eaaf_module_moa-sig/src/main/resources/properties/status_messages_en.properties
index 8802c35d..95ac086a 100644
--- a/eaaf_modules/eaaf_module_moa-sig/src/main/resources/properties/status_messages_en.properties
+++ b/eaaf_modules/eaaf_module_moa-sig/src/main/resources/properties/status_messages_en.properties
@@ -1,4 +1,6 @@
service.moasig.01=Can not deserialize X509 certificate
service.moasig.02=Can not parse XML signature verification response. Reason: {0}
service.moasig.03=Signature verification operation has an internal error. Reason: {0}
-service.moasig.04=Configuration of MOA-Sig signature-verification library FAILED! Reason: {0} \ No newline at end of file
+service.moasig.04=Configuration of MOA-Sig signature-verification library FAILED! Reason: {0}
+
+service.03 \ No newline at end of file