You need some way to reference what is being signed inside the Signature.
How are you referencing the Element if it has no "Id" attribute?

Colm.

On Mon, Mar 9, 2015 at 7:48 AM, tobias <[email protected]> wrote:

> In the example SignatureUtils.java there is this code line
> signedElement.setIdAttributeNS(null, "Id", true); which referes to the
> optional id of attached xml element where ths signature is embedded. But by
> specification says it`s an optional attribute. My question is how can I do
> or check if the id attribute is there, because when it is not there I`m
> getting an "Element not found" error at this place.
> ------------------------------
> View this message in context: Optional ID of attached element
> <http://apache-xml-project.6118.n7.nabble.com/Optional-ID-of-attached-element-tp41910.html>
> Sent from the Apache XML - Security - Dev mailing list archive
> <http://apache-xml-project.6118.n7.nabble.com/Apache-XML-Security-Dev-f33675.html>
> at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to