aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-moa/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-moa/src/main/java/at/gv/egiz')
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java4
-rw-r--r--pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java
index 212e4116..5f3d9cb8 100644
--- a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java
+++ b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAConnector.java
@@ -131,7 +131,7 @@ public class MOAConnector implements ISignatureConnector,
this.certificate = new X509Certificate(
certificateURL.openStream());
} catch (MalformedURLException e) {
- logger.error(certificateValue + " is not a valid url but!");
+ logger.error(certificateValue + " is not a valid url but starts with http!");
throw new PdfAsWrappedIOException(new PdfAsException(
certificateValue + " is not a valid url but!"));
}
@@ -210,7 +210,7 @@ public class MOAConnector implements ISignatureConnector,
try {
response = creationPort.createCMSSignature(request);
} catch (MOAFault e) {
- logger.error("MOA signing failed!", e);
+ logger.warn("MOA signing failed!", e);
if (e.getFaultInfo() != null) {
throw new PdfAsMOAException(e.getFaultInfo().getErrorCode()
.toString(), e.getFaultInfo().getInfo(), "", "");
diff --git a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java
index 45f9a223..1dc63e0b 100644
--- a/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java
+++ b/pdf-as-moa/src/main/java/at/gv/egiz/pdfas/moa/MOAVerifier.java
@@ -177,7 +177,7 @@ public class MOAVerifier implements IVerifier {
}
resultList.add(result);
} catch (Throwable e) {
- logger.error("Verification failed", e);
+ logger.warn("Verification failed", e);
throw new PdfAsException("error.pdf.verify.02", e);
}
return resultList;