diff options
Diffstat (limited to 'id/server/modules/module-stork/src')
-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();
|