From 1d628445a63e07987d774982d7fdf395788a21fc Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 25 Jan 2012 14:37:03 +0000 Subject: 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 --- .../at/gv/egiz/bku/slcommands/impl/xsect/Signature.java | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'bkucommon/src/main/java/at') 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; -- cgit v1.2.3