Hi,

I'm trying to use SignatureProperties to parse an existing XML signature.
In order for getLength() and item(...) to work as expected, I need to construct SignatureProperties as follows:
SignatureProperties signatureProperties = new SignatureProperties((Element)
xmlSignature.getObjectItem(0).getElement().getChildNodes().item(0).getFirstChild(), null);

This because getLength() operates on this.constructionElement, and XMLUtils.selectDsNodes(...) expects the siblings. However, doing so, this conflicts with the constructor that requires the SignatureProperties element itself instead of the first child element.

I guess this is a bug within SignatureProperties?

Using xmlsec 1.5.8.


Kind Regards,
Frank.

Reply via email to