santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satish Burnwal <>
Subject Re: Help validating XML signature
Date Wed, 06 Aug 2008 14:16:37 GMT
Ian Hummel <hummel <at writes:

 Hi Brent, thanks for the reply.
 I made the two changes you suggested but the signature is still not  
 validating.  I have been adding println's all throughout the 1.4.0  
 code to better understand why, and it seems that the C14N transform is  
 returning null at one point.
 The Reference object loops through all the configured transforms, the 
   transform returns a (modified, i assume) XMLSignatureInput, then we  
 run through the C14N and it returns null!
 The block of code is in in method  
           System.out.println("canonicalizeXPathNodeSet is ok i  
           if (this._writer instanceof ByteArrayOutputStream) {
              byte []  
              if (reset) {
           	return sol;
           }  else if (this._writer instanceof  
 UnsyncByteArrayOutputStream) {
               if (reset) {
            	 return result;
           return null;   <------ returns this null!
 The _writer instance in this case was created in method  
           MessageDigestAlgorithm mda = this.getMessageDigestAlgorithm();
           DigesterOutputStream diOs=new DigesterOutputStream(mda);
           OutputStream os=new UnsyncBufferedOutputStream(diOs);   <---  
 not check via instanceof in CanonicalizerBase
 Do you (or anyone) think this could be a bug?  I 1.4.1 mentioned some  
 bug in C14N, but I have tried that version as well without success....
 thanks for the help!
 - ian.

Ian and all,
Did you get any solution to the problem you are facing above. I am also facing
the same problem - I also have as signed token which has transforms of followed by I tried to debug this by taking the
xmlsec src codes and I found the same problem as mentioned by Ian above. Pls
help in resolving this.


View raw message