|
From: <pe...@us...> - 2004-03-09 00:07:49
|
Update of /cvsroot/neuclear/neuclear-xmlsig/src/test/org/neuclear/xml/transforms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23732/src/test/org/neuclear/xml/transforms Added Files: EnvelopedSignatureTransformTest.java Removed Files: DropSignatureTransformTest.java Log Message: More improvements on the XMLSignature. Now uses the Transforms properly, References properly. All the major elements have been refactored to be cleaner and more correct. --- NEW FILE: EnvelopedSignatureTransformTest.java --- package org.neuclear.xml.transforms; /** * (C) 2003 Antilles Software Ventures SA * User: pelleb * Date: Jan 21, 2003 * Time: 3:12:00 PM * $Id: EnvelopedSignatureTransformTest.java,v 1.1 2004/03/08 23:51:03 pelle Exp $ * $Log: EnvelopedSignatureTransformTest.java,v $ * Revision 1.1 2004/03/08 23:51:03 pelle * More improvements on the XMLSignature. Now uses the Transforms properly, References properly. * All the major elements have been refactored to be cleaner and more correct. * * Revision 1.2 2003/11/21 04:44:31 pelle * EncryptedFileStore now works. It uses the PBECipher with DES3 afair. * Otherwise You will Finaliate. * Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final. * This should hopefully make everything more stable (and secure). * * Revision 1.1.1.1 2003/11/11 16:33:31 pelle * Moved over from neudist.org * Moved remaining common utilities into commons * * Revision 1.2 2003/02/11 14:50:26 pelle * Trying onemore time. Added the benchmarking code. * Now generates DigestValue and optionally adds KeyInfo to Signature. * * Revision 1.1 2003/02/01 01:48:26 pelle * Fixed the XPath Transform. * Has the beginning of a processing framework for the Reference class. * * Revision 1.1 2003/01/21 22:01:44 pelle * Added a bunch of test cases for Transforms. * Also several new transforms are there. * I have a feeling I didn't think this through, so dont use the Transform bit yet. * NB. None of it is used yet by the actual signing process so dont worry. * */ import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element; public final class EnvelopedSignatureTransformTest extends AbstractTransformTest { public EnvelopedSignatureTransformTest(final String s) { super(s); } public final Transform createTransform() { return new EnvelopedSignatureTransform(); } public final Element getTestElement() { try { return DocumentHelper.parseText(TESTELEMENT).getRootElement(); } catch (DocumentException e) { e.printStackTrace(); //To change body of catch statement use Options | File Templates. return null; } } public final Element getExpectedResult() { try { return DocumentHelper.parseText(TESTRESULT).getRootElement(); } catch (DocumentException e) { e.printStackTrace(); //To change body of catch statement use Options | File Templates. return null; } } private static final String TESTELEMENT = "<test><test2/><ds:Signature xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\"/></test>"; private static final String TESTRESULT = "<test><test2/></test>"; } --- DropSignatureTransformTest.java DELETED --- |