From 80b136d377328925e0a3b5f5b395e4765d66bfba Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 2 Sep 2015 08:24:44 +0200 Subject: fix possible problem with jUnit test and jenkins build process --- .../moa/id/auth/modules/stork/STORKProcessEngineSignalServlet.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'id/server/modules/module-stork/src') diff --git a/id/server/modules/module-stork/src/main/java/at/gv/egovernment/moa/id/auth/modules/stork/STORKProcessEngineSignalServlet.java b/id/server/modules/module-stork/src/main/java/at/gv/egovernment/moa/id/auth/modules/stork/STORKProcessEngineSignalServlet.java index 989f2b6bd..efc1cd498 100644 --- a/id/server/modules/module-stork/src/main/java/at/gv/egovernment/moa/id/auth/modules/stork/STORKProcessEngineSignalServlet.java +++ b/id/server/modules/module-stork/src/main/java/at/gv/egovernment/moa/id/auth/modules/stork/STORKProcessEngineSignalServlet.java @@ -16,7 +16,6 @@ import javax.xml.xpath.XPathFactory; import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang3.StringUtils; -import org.bouncycastle.util.encoders.Base64; import org.springframework.util.xml.SimpleNamespaceContext; import org.w3c.dom.Document; import org.xml.sax.SAXException; @@ -24,6 +23,7 @@ import org.xml.sax.SAXException; import at.gv.egovernment.moa.id.auth.MOAIDAuthConstants; import at.gv.egovernment.moa.id.auth.servlet.ProcessEngineSignalServlet; import at.gv.egovernment.moa.logging.Logger; +import at.gv.egovernment.moa.util.Base64Utils; /** * STORK module specific servlet, overloading {@link ProcessEngineSignalServlet}'s method @@ -66,7 +66,7 @@ public class STORKProcessEngineSignalServlet extends ProcessEngineSignalServlet if (sessionId == null) { String base64SamlToken = request.getParameter("SAMLResponse"); if (base64SamlToken != null) { - byte[] samlToken = Base64.decode(base64SamlToken); + byte[] samlToken = Base64Utils.decode(base64SamlToken, false); Document samlResponse = parseDocument(new ByteArrayInputStream(samlToken)); XPath xPath = XPathFactory.newInstance().newXPath(); -- cgit v1.2.3