|
From: Pelle B. <pe...@us...> - 2004-03-20 17:29:41
|
Update of /cvsroot/neuclear/neuclear-xmlsig/src/test/org/neuclear/xml/xmlsec In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19580/src/test/org/neuclear/xml/xmlsec Modified Files: InteropTests.java Log Message: The problem with Enveloped signatures has now been fixed. It was a problem in the way transforms work. I have bandaided it, but in the future if better support for transforms need to be made, we need to rethink it a bit. Perhaps using the new crypto channel's in neuclear-commons. Index: InteropTests.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-xmlsig/src/test/org/neuclear/xml/xmlsec/InteropTests.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** InteropTests.java 19 Mar 2004 23:38:25 -0000 1.2 --- InteropTests.java 20 Mar 2004 17:19:42 -0000 1.3 *************** *** 8,11 **** --- 8,14 ---- * $Id$ * $Log$ + * Revision 1.3 2004/03/20 17:19:42 pelle + * The problem with Enveloped signatures has now been fixed. It was a problem in the way transforms work. I have bandaided it, but in the future if better support for transforms need to be made, we need to rethink it a bit. Perhaps using the new crypto channel's in neuclear-commons. + * * Revision 1.2 2004/03/19 23:38:25 pelle * I now know the problem is in the Reference element *************** *** 126,134 **** public final void testMerlin23() throws IOException, DocumentException, NeuClearException { ! runDirectoryTest("src/testdata/merlin-xmldsig-twenty-three", 11);//,"signature-enveloping-dsa\\.xml"); } public final void testPhaos() throws IOException, DocumentException, NeuClearException { ! runDirectoryTest("src/testdata/phaos-xmldsig-two", 0); } --- 129,137 ---- public final void testMerlin23() throws IOException, DocumentException, NeuClearException { ! runDirectoryTest("src/testdata/merlin-xmldsig-twenty-three", 10);//,"signature-enveloping-dsa\\.xml"); } public final void testPhaos() throws IOException, DocumentException, NeuClearException { ! runDirectoryTest("src/testdata/phaos-xmldsig-two", 30); } *************** *** 170,174 **** } catch (Exception e) { System.out.println("ERROR: " + (errors++) + e.getMessage()); ! e.printStackTrace(); //To change body of catch statement use Options | File Templates. } } --- 173,177 ---- } catch (Exception e) { System.out.println("ERROR: " + (errors++) + e.getMessage()); ! // e.printStackTrace(); //To change body of catch statement use Options | File Templates. } } *************** *** 184,187 **** --- 187,191 ---- return true; } catch (InvalidSignatureException e) { + System.out.println(e.getMessage()); return false; } |