From c2ae3db1bc6dcb8ba3eb3461c05e293917c004ca Mon Sep 17 00:00:00 2001 From: mcentner Date: Thu, 30 Oct 2008 10:33:29 +0000 Subject: Updated SMCC to use exclusive access and to throw exceptions upon locked or not activated cards. Improved locale support in the security layer request and response processing. Fixed issue in STAL which prevented the use of RSA-SHA1 signatures. Added additional parameters to the applet test pages. git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@128 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java') diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java index 57309182..7306b237 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/SLResultImpl.java @@ -16,6 +16,8 @@ */ package at.gv.egiz.bku.slcommands.impl; +import java.util.Locale; + import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBElement; import javax.xml.bind.JAXBException; @@ -181,6 +183,10 @@ public abstract class SLResultImpl implements SLResult { } protected void writeErrorTo(SLException slException, Result result, Templates templates) { + writeErrorTo(slException, result, templates, Locale.getDefault()); + } + + protected void writeErrorTo(SLException slException, Result result, Templates templates, Locale locale) { TransformerHandler transformerHandler = null; if (templates != null) { @@ -195,7 +201,7 @@ public abstract class SLResultImpl implements SLResult { ObjectFactory factory = new ObjectFactory(); ErrorResponseType responseType = factory.createErrorResponseType(); responseType.setErrorCode(slException.getErrorCode()); - responseType.setInfo(slException.getDetailedMsg()); + responseType.setInfo(slException.getLocalizedMessage(locale)); JAXBElement response = factory.createErrorResponse(responseType); Marshaller marshaller = getMarshaller(); -- cgit v1.2.3