diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-07-01 12:40:24 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2020-07-01 12:40:24 +0200 |
commit | fd6ffb7bf3ffbc00bb96c0eb215d89edbbb021e3 (patch) | |
tree | 9d30caea5b5099d1f0fe289b4d44771c6d5f3362 /eaaf_modules/eaaf_module_auth_sl20/src/main/java | |
parent | 234cee5815f8688d45146b792ebe3c8015a7dc74 (diff) | |
download | EAAF-Components-fd6ffb7bf3ffbc00bb96c0eb215d89edbbb021e3.tar.gz EAAF-Components-fd6ffb7bf3ffbc00bb96c0eb215d89edbbb021e3.tar.bz2 EAAF-Components-fd6ffb7bf3ffbc00bb96c0eb215d89edbbb021e3.zip |
update log message in case of SL2.0 VDA connection error
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20/src/main/java')
-rw-r--r-- | eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractCreateQualEidRequestTask.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractCreateQualEidRequestTask.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractCreateQualEidRequestTask.java index 7fa50e3f..5be5a61f 100644 --- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractCreateQualEidRequestTask.java +++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/tasks/AbstractCreateQualEidRequestTask.java @@ -1,6 +1,7 @@ package at.gv.egiz.eaaf.modules.auth.sl20.tasks; import java.io.Serializable; +import java.net.ConnectException; import java.security.cert.CertificateEncodingException; import java.util.ArrayList; import java.util.List; @@ -39,16 +40,15 @@ import org.apache.http.client.methods.HttpPost; import org.apache.http.client.utils.URIBuilder; import org.apache.http.message.BasicNameValuePair; import org.jose4j.base64url.Base64Url; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.i18n.LocaleContextHolder; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; +import lombok.extern.slf4j.Slf4j; +@Slf4j public abstract class AbstractCreateQualEidRequestTask extends AbstractAuthServletTask { - private static final Logger log = LoggerFactory.getLogger(AbstractCreateQualEidRequestTask.class); @Autowired(required = true) private IHttpClientFactory httpClientFactory; @@ -186,6 +186,11 @@ public abstract class AbstractCreateQualEidRequestTask extends AbstractAuthServl } catch (final EaafAuthenticationException e) { throw new TaskExecutionException(pendingReq, "SL2.0 Authentication FAILED. Msg: " + e.getMessage(), e); + } catch (final ConnectException e) { + log.error("SL2.0 Authentication has a VDA connector error.", e); + throw new TaskExecutionException(pendingReq, e.getMessage(), + new SL20Exception("sl20.02", new Object[] { e.getMessage()}, e)); + } catch (final Exception e) { log.warn("SL2.0 Authentication FAILED with a generic error.", e); throw new TaskExecutionException(pendingReq, e.getMessage(), e); |