From 3843e2ec114dc1bdbe193ca1201198a565cb9626 Mon Sep 17 00:00:00 2001 From: rudolf Date: Mon, 26 Apr 2004 13:31:40 +0000 Subject: *** empty log message *** git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@114 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/id/auth/parser/VerifyXMLSignatureResponseParser.java | 2 +- .../moa/id/auth/servlet/VerifyAuthenticationBlockServlet.java | 4 +++- .../egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java | 6 ++++-- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'id.server/src/at/gv/egovernment/moa/id') diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/parser/VerifyXMLSignatureResponseParser.java b/id.server/src/at/gv/egovernment/moa/id/auth/parser/VerifyXMLSignatureResponseParser.java index c74dc64e8..9c74114ad 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/parser/VerifyXMLSignatureResponseParser.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/parser/VerifyXMLSignatureResponseParser.java @@ -83,7 +83,7 @@ public class VerifyXMLSignatureResponseParser { verifyXMLSignatureResponse = DOMUtils.parseXmlValidating(s); } catch (Throwable t) { - throw new ParseException("parser.01", null, t); + throw new ParseException("parser.01", new Object[] { t.toString() }, t); } } diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyAuthenticationBlockServlet.java b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyAuthenticationBlockServlet.java index eda0c6726..de5f03dd7 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyAuthenticationBlockServlet.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyAuthenticationBlockServlet.java @@ -10,8 +10,10 @@ import javax.servlet.http.HttpServletResponse; import at.gv.egovernment.moa.id.MOAIDException; import at.gv.egovernment.moa.id.auth.AuthenticationServer; +import at.gv.egovernment.moa.id.auth.MOAIDAuthConstants; import at.gv.egovernment.moa.id.auth.data.AuthenticationSession; import at.gv.egovernment.moa.logging.Logger; +import at.gv.egovernment.moa.util.OutputXML2File; /** * Servlet requested for verifying the signed authentication block @@ -72,7 +74,7 @@ public class VerifyAuthenticationBlockServlet extends AuthServlet { // debug XMLSignatureResponse from BKU if(null != createXMLSignatureResponse) - AuthenticationServer.debugOutputXMLFile("CreateXMLSignatureResponse.xml", createXMLSignatureResponse); + OutputXML2File.debugOutputXML2File("CreateXMLSignatureResponse.xml", createXMLSignatureResponse, MOAIDAuthConstants.DEBUG_OUTPUT_HIERARCHY); try { AuthenticationSession session = AuthenticationServer.getSession(sessionID); String samlArtifactBase64 = diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java index 55bce7af3..00ec57e83 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/servlet/VerifyIdentityLinkServlet.java @@ -12,7 +12,9 @@ import at.gv.egovernment.moa.id.MOAIDException; import at.gv.egovernment.moa.id.auth.AuthenticationServer; import at.gv.egovernment.moa.id.auth.builder.DataURLBuilder; import at.gv.egovernment.moa.id.auth.data.AuthenticationSession; +import at.gv.egovernment.moa.id.auth.MOAIDAuthConstants; import at.gv.egovernment.moa.logging.Logger; +import at.gv.egovernment.moa.util.OutputXML2File; /** * Servlet requested for verifying the identity link @@ -68,7 +70,7 @@ public class VerifyIdentityLinkServlet extends AuthServlet { String infoboxReadResponse = (String)parameters.get(PARAM_XMLRESPONSE); // debug output if(null != infoboxReadResponse) - AuthenticationServer.debugOutputXMLFile("InfoboxReadResponse.xml", infoboxReadResponse); + OutputXML2File.debugOutputXML2File("InfoboxReadResponse.xml", infoboxReadResponse, MOAIDAuthConstants.DEBUG_OUTPUT_HIERARCHY); try { String createXMLSignatureRequest = AuthenticationServer.getInstance().verifyIdentityLink(sessionID, infoboxReadResponse); @@ -80,7 +82,7 @@ public class VerifyIdentityLinkServlet extends AuthServlet { resp.setContentType("text/xml"); // debug output if(null != createXMLSignatureRequest) - AuthenticationServer.debugOutputXMLFile("CreateXMLSignatureRequest.xml", createXMLSignatureRequest); + OutputXML2File.debugOutputXML2File("CreateXMLSignatureRequest.xml", createXMLSignatureRequest, MOAIDAuthConstants.DEBUG_OUTPUT_HIERARCHY); OutputStream out = resp.getOutputStream(); out.write(createXMLSignatureRequest.getBytes("UTF-8")); out.flush(); -- cgit v1.2.3