Instead of passing a Document (first argument), use a Element.
Thanks.
Pedro Igor
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Please, use the following method to achieve what you want:
XMLSignatureUtil.sign(rstrDocument.getDocumentElement(), assertionElement, keyPair, DigestMethod.SHA1, signatureMethod, referenceURI);
Instead of passing a Document (first argument), use a Element.
Thanks.
Pedro Igor