Miroslav Nachev wrote:
I will try your suggestions tomorrow, but I am not sure that this is the
problem. Before to quit from the office I found that the digest value
for this reference is different calculated for Signing and Validation.
The stack trace from Exception is missing because any exception is not
thrown. The boolean value "false" is returned for whole signature. Then
I check each time individually and see that the problem is in this
reference again without exception. Only "false" value is returned.
Because of the above I think that the digest algorithm for Signing and
Validation is different. And because the only difference are both
Namespaces in one element, I think that this is the real problem.
Try enabling logging support and inspect what is being digested when
signing and when validating. You should be able to precisely narrow down
the problem (it is probably namespace related). I assume you are using
JSR 105 from our previous correspondences. See this blog for more info
on enabling the logging:
http://weblogs.java.net/blog/mullan/archive/2006/02/more_xml_signat_1.html
--Sean