diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-09-02 08:24:44 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-09-02 08:24:44 +0200 |
commit | 80b136d377328925e0a3b5f5b395e4765d66bfba (patch) | |
tree | 631072605514537d9ef44b6624e243afecb65a9d /id/server/modules | |
parent | 015f4cba570eef962eb0c5951a36959623f7cd0e (diff) | |
download | moa-id-spss-80b136d377328925e0a3b5f5b395e4765d66bfba.tar.gz moa-id-spss-80b136d377328925e0a3b5f5b395e4765d66bfba.tar.bz2 moa-id-spss-80b136d377328925e0a3b5f5b395e4765d66bfba.zip |
fix possible problem with jUnit test and jenkins build process
Diffstat (limited to 'id/server/modules')
-rw-r--r-- | id/server/modules/module-stork/src/main/java/at/gv/egovernment/moa/id/auth/modules/stork/STORKProcessEngineSignalServlet.java | 4 |
1 files changed, 2 insertions, 2 deletions
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();
|