aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig-lib/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'moaSig/moa-sig-lib/src/main')
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java15
-rw-r--r--moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/util/AdESResultUtils.java10
2 files changed, 15 insertions, 10 deletions
diff --git a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java
index e68092f..d3ad086 100644
--- a/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java
+++ b/moaSig/moa-sig-lib/src/main/java/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java
@@ -244,10 +244,12 @@ public class XMLSignatureVerificationInvoker {
adesResults = AdESResultUtils.getAdESResult(result.getFormVerificationResult());
- if (adesResults != null) {
- Iterator adesIterator = adesResults.iterator();
- while (adesIterator.hasNext()) {
- Logger.info("ADES Formresults: " + adesIterator.next().toString());
+ if (Logger.isDebugEnabled()) {
+ if (adesResults != null) {
+ Iterator adesIterator = adesResults.iterator();
+ while (adesIterator.hasNext()) {
+ Logger.debug("ADES Formresults: " + adesIterator.next().toString());
+ }
}
}
@@ -255,11 +257,12 @@ public class XMLSignatureVerificationInvoker {
try {
//Logger.info("Extended Validation Report: " + result.getName());
- Logger.info("Extended Validation Code: " + result.getResultCode().toString());
- Logger.info("Extended Validation Info: " + result.getInfo());
+ Logger.debug("Extended Validation Code: " + result.getResultCode().toString());
+ Logger.debug("Extended Validation Info: " + result.getInfo());
extCheckResult = AdESResultUtils.getExtendedResult(result.getResultCode());
responseBuilder.setExtendedCertificateCheckResult(extCheckResult);
+
} catch (NullPointerException e) {
Logger.info("No extendend validation result available.");
}
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 a28088a..3ac706e 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
@@ -193,28 +193,30 @@ public class AdESResultUtils {
public static void checkSubResult(AdESVerificationResult subResult, String level, List adesList) {
if (subResult != null) {
- Logger.info("Checking Level: " + level);
+ Logger.debug("Checking Level: " + level);
try {
AdESFormResultsImpl adESFormResultsImpl = new AdESFormResultsImpl();
adESFormResultsImpl.setCode(subResult.getResultCode());
- Logger.info("RESULT: " + String.valueOf(subResult.getResultCode()));
+ Logger.debug("RESULT: " + String.valueOf(subResult.getResultCode()));
adESFormResultsImpl.setInfo(subResult.getInfo());
adESFormResultsImpl.setName(level);
adesList.add(adESFormResultsImpl);
} catch (NullPointerException e) {
Logger.warn("Catching NullPointer Exception, of invalid Form Results", e);
+
}
} else {
Logger.info("Subresult Level: " + level + " not available");
+
}
}
public static void checkSubResult(SignatureVerificationResult subResult, String level, List adesList)
throws ConfigurationException {
if (subResult != null) {
- Logger.info("Checking Level: " + level);
+ Logger.debug("Checking Level: " + level);
try {
AdESFormResultsImpl adESFormResultsImpl = new AdESFormResultsImpl();
@@ -226,7 +228,7 @@ public class AdESResultUtils {
} else {
adESFormResultsImpl.setCode(SignatureVerificationResult.INDETERMINATE);
}
- Logger.info("RESULT: " + resultCode.toString());
+ Logger.debug("RESULT: " + resultCode.toString());
adESFormResultsImpl.setInfo(subResult.getInfo());
adESFormResultsImpl.setName(level);