summaryrefslogtreecommitdiff
path: root/bkucommon
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-01-25 14:37:03 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-01-25 14:37:03 +0000
commit1d628445a63e07987d774982d7fdf395788a21fc (patch)
tree49a0d184493c0ae3a10ae587ab90af9c65a37f83 /bkucommon
parent27677ce63376db2cd4d6078baa6466343981eccf (diff)
downloadmocca-1d628445a63e07987d774982d7fdf395788a21fc.tar.gz
mocca-1d628445a63e07987d774982d7fdf395788a21fc.tar.bz2
mocca-1d628445a63e07987d774982d7fdf395788a21fc.zip
Remove xpointer reference in XAdES 1.4 Signature
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1013 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'bkucommon')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java13
1 files changed, 1 insertions, 12 deletions
diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java
index bbf44513..bf2bbac4 100644
--- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java
+++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/Signature.java
@@ -813,18 +813,7 @@ public class Signature {
objects.add(object);
- // TODO: Report MOA-SP Bug
- //
- // Direct referencing of the SignedPorperties Id-attribute is not supported by MOA-SP
- // because the QualifyingProperties are parsed without the XAdES schema. Therefore,
- // the shorthand XPointer could not be resolved.
- //
- // The following workaround uses an XPointer to select the SignedProperties in order
- // to allow the signature to be verified with MOA-SP.
-
- String referenceURI = "#xmlns(xades=http://uri.etsi.org/01903/v1.4.1%23)%20xpointer(id('"
- + objectIdValue
- + "')/child::xades:QualifyingProperties/child::xades:SignedProperties)";
+ String referenceURI = "#" + objectIdValue;
String referenceIdValue = ctx.getIdValueFactory().createIdValue("Reference");
String referenceType = QualifyingProperties1_4Factory.SIGNED_PROPERTIES_REFERENCE_TYPE_V1_4_1;