summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-02 10:13:16 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-02 10:23:13 +0200
commitd63c9daebb9240e759c352a41d9d86718f2f306e (patch)
tree560901d7690408702a5974fb9eda00893855ddc8 /eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv
parent968c820b63c6e8c9cb158f0664ffab3e35d6b80e (diff)
downloadEAAF-Components-d63c9daebb9240e759c352a41d9d86718f2f306e.tar.gz
EAAF-Components-d63c9daebb9240e759c352a41d9d86718f2f306e.tar.bz2
EAAF-Components-d63c9daebb9240e759c352a41d9d86718f2f306e.zip
patch xpath expression that selects dsig:Signature
- Problem: xpath that determines dsig:Signature element only selects first-order child elements. - Fix: Add "//"-prefix to xpath expression, which "selects nodes in the document from the current node that match the selection no matter where they are" [1] [1] https://www.w3schools.com/xml/xpath_syntax.asp
Diffstat (limited to 'eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv')
-rw-r--r--eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/impl/SignatureVerificationService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/impl/SignatureVerificationService.java b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/impl/SignatureVerificationService.java
index ca20ce0f..02f5f12a 100644
--- a/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/impl/SignatureVerificationService.java
+++ b/eaaf_modules/eaaf_module_moa-sig/src/main/java/at/gv/egiz/eid/authhandler/modules/sigverify/moasig/impl/SignatureVerificationService.java
@@ -217,7 +217,7 @@ public class SignatureVerificationService extends AbstractSignatureService imple
// specify the signature location
final Element verifySignatureLocationElem = requestDoc_.createElementNS(MOA_NS_URI, "VerifySignatureLocation");
verifiySignatureInfoElem.appendChild(verifySignatureLocationElem);
- final Node signatureLocation = requestDoc_.createTextNode(DSIG + "Signature");
+ final Node signatureLocation = requestDoc_.createTextNode("//" + DSIG + "Signature");
verifySignatureLocationElem.appendChild(signatureLocation);
// signature manifest params