summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_auth_sl20
diff options
context:
space:
mode:
authorThomas <>2023-05-31 09:05:19 +0200
committerThomas <>2023-05-31 09:05:19 +0200
commitb8807c30b2ef988226573c6b5bf2f6b3de6aac4d (patch)
treed3fb30b45db741aa19657f39cedabe7e353ada0b /eaaf_modules/eaaf_module_auth_sl20
parentdc9595c7aea48583d4bd075b398b4ce68b626965 (diff)
downloadEAAF-Components-b8807c30b2ef988226573c6b5bf2f6b3de6aac4d.tar.gz
EAAF-Components-b8807c30b2ef988226573c6b5bf2f6b3de6aac4d.tar.bz2
EAAF-Components-b8807c30b2ef988226573c6b5bf2f6b3de6aac4d.zip
refact(core): change some more internal representation to make it JSON serializable
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20')
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
index d7af8b8e..f95d4adc 100644
--- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
+++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractReceiveQualEidTask.java
@@ -17,6 +17,7 @@ import at.gv.egiz.eaaf.core.api.idp.process.ExecutionContext;
import at.gv.egiz.eaaf.core.exceptions.EaafAuthenticationException;
import at.gv.egiz.eaaf.core.exceptions.EaafStorageException;
import at.gv.egiz.eaaf.core.exceptions.TaskExecutionException;
+import at.gv.egiz.eaaf.core.impl.data.ExceptionContainer;
import at.gv.egiz.eaaf.core.impl.idp.auth.modules.AbstractAuthServletTask;
import at.gv.egiz.eaaf.core.impl.utils.DataUrlBuilder;
import at.gv.egiz.eaaf.core.impl.utils.StreamUtils;
@@ -163,19 +164,21 @@ public abstract class AbstractReceiveQualEidTask extends AbstractAuthServletTask
if (sl20Result != null) {
log.debug("Received SL2.0 result: " + sl20Result);
}
+
pendingReq.setRawDataToTransaction(
Constants.PENDING_REQ_STORAGE_PREFIX + SL20Constants.SL20_COMMAND_IDENTIFIER_ERROR,
- new TaskExecutionException(pendingReq, "SL2.0 Authentication FAILED. Msg: " + e.getMessage(), e));
+ new ExceptionContainer(null,
+ new TaskExecutionException(pendingReq, "SL2.0 Authentication FAILED. Msg: " + e.getMessage(),
+ e)));
} catch (final Exception e) {
-
-
if (sl20Result != null) {
log.debug("Received SL2.0 result: " + sl20Result);
}
+
pendingReq.setRawDataToTransaction(
Constants.PENDING_REQ_STORAGE_PREFIX + SL20Constants.SL20_COMMAND_IDENTIFIER_ERROR,
- new TaskExecutionException(pendingReq, e.getMessage(), e));
+ new ExceptionContainer(null, new TaskExecutionException(pendingReq, e.getMessage(), e)));
} finally {
// store pending request