From 0f593a0a8e39f30b17de189af6e2bcf7635dd73a Mon Sep 17 00:00:00 2001 From: "harald.bratko" Date: Wed, 24 Aug 2005 16:00:55 +0000 Subject: Fixed bug which uses PUBLIC_AUTHORITY_CODE_XPATH for retrieving public authority certificate information. Must be PUBLIC_AUTHORITY_XPATH git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@468 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../moa/id/auth/parser/VerifyXMLSignatureResponseParser.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 1c4a35226..4c49afb76 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 @@ -31,8 +31,6 @@ public class VerifyXMLSignatureResponseParser { private static final String MOA = Constants.MOA_PREFIX + ":"; /** Xpath prefix for reaching DSIG Namespaces */ private static final String DSIG = Constants.DSIG_PREFIX + ":"; - /** Xpath prefix for reaching SecurityLayer 1.1 Namespaces */ - private static final String SL11 = Constants.SL11_PREFIX + ":"; /** Xpath expression to the root element */ private static final String ROOT = "/" + MOA + "VerifyXMLSignatureResponse/"; @@ -133,7 +131,7 @@ public class VerifyXMLSignatureResponseParser { verifyXMLSignatureResponse,DSIG_X509_CERTIFICATE_XPATH,"").getBytes("UTF-8")),true); respData.setX509certificate(new X509Certificate(in)); - Element publicAuthority = (Element)XPathUtils.selectSingleNode(verifyXMLSignatureResponse,PUBLIC_AUTHORITY_CODE_XPATH); + Element publicAuthority = (Element)XPathUtils.selectSingleNode(verifyXMLSignatureResponse,PUBLIC_AUTHORITY_XPATH); respData.setPublicAuthority(publicAuthority != null); respData.setPublicAuthorityCode(XPathUtils.getElementValue(verifyXMLSignatureResponse,PUBLIC_AUTHORITY_CODE_XPATH,"")); respData.setSignatureCheckCode(new Integer(XPathUtils.getElementValue(verifyXMLSignatureResponse,SIGNATURE_CHECK_CODE_XPATH,"")).intValue()); -- cgit v1.2.3