You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(119) |
Oct
(111) |
Nov
(238) |
Dec
(395) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(239) |
Feb
(59) |
Mar
(354) |
Apr
(489) |
May
(23) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(5) |
Jun
(2) |
Jul
|
Aug
|
Sep
(3) |
Oct
(14) |
Nov
(17) |
Dec
(9) |
| 2007 |
Jan
(4) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
|
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(1) |
Dec
|
| 2008 |
Jan
|
Feb
|
Mar
(1) |
Apr
(7) |
May
(3) |
Jun
(6) |
Jul
(4) |
Aug
(3) |
Sep
(15) |
Oct
(13) |
Nov
(35) |
Dec
(40) |
| 2009 |
Jan
(19) |
Feb
(21) |
Mar
(16) |
Apr
(18) |
May
(36) |
Jun
(20) |
Jul
(32) |
Aug
(11) |
Sep
(3) |
Oct
(2) |
Nov
(2) |
Dec
(13) |
| 2010 |
Jan
(5) |
Feb
(5) |
Mar
(7) |
Apr
(1) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(4) |
Nov
|
Dec
(3) |
| 2012 |
Jan
(3) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(8) |
Jun
(4) |
Jul
(9) |
Aug
(2) |
Sep
(8) |
Oct
(3) |
Nov
(8) |
Dec
(4) |
| 2013 |
Jan
(2) |
Feb
(1) |
Mar
(5) |
Apr
(6) |
May
(10) |
Jun
(5) |
Jul
(6) |
Aug
(7) |
Sep
(5) |
Oct
(2) |
Nov
(4) |
Dec
(4) |
| 2014 |
Jan
(13) |
Feb
(4) |
Mar
(7) |
Apr
(9) |
May
(20) |
Jun
(13) |
Jul
(10) |
Aug
(3) |
Sep
(5) |
Oct
(2) |
Nov
(2) |
Dec
(2) |
| 2015 |
Jan
(3) |
Feb
(3) |
Mar
(5) |
Apr
(4) |
May
(3) |
Jun
(2) |
Jul
(4) |
Aug
(3) |
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(3) |
| 2016 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(1) |
Jun
(2) |
Jul
(1) |
Aug
(4) |
Sep
(3) |
Oct
(3) |
Nov
(4) |
Dec
(2) |
| 2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
(2) |
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <pe...@us...> - 2004-03-02 19:11:18
|
Update of /cvsroot/neuclear/neuclear-id/src/test-cactus/org/neuclear/signers/servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/test-cactus/org/neuclear/signers/servlet Removed Files: SigningServletTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- SigningServletTest.java DELETED --- |
|
From: <pe...@us...> - 2004-03-02 19:11:18
|
Update of /cvsroot/neuclear/neuclear-id/src/test-cactus/org/neuclear/auth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/test-cactus/org/neuclear/auth Removed Files: AuthenticationFilterTest.java AuthenticationServletTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- AuthenticationFilterTest.java DELETED --- --- AuthenticationServletTest.java DELETED --- |
|
From: <pe...@us...> - 2004-03-02 19:11:18
|
Update of /cvsroot/neuclear/neuclear-id/src/webapp/WEB-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/webapp/WEB-INF Modified Files: web.xml Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: web.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/webapp/WEB-INF/web.xml,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** web.xml 15 Dec 2003 23:33:05 -0000 1.8 --- web.xml 2 Mar 2004 18:59:13 -0000 1.9 *************** *** 27,31 **** <filter> <filter-name>authfilter</filter-name> ! <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> </filter> <filter-mapping> --- 27,31 ---- <filter> <filter-name>authfilter</filter-name> ! <filter-class>org.neuclear.id.auth.AuthenticationFilter</filter-class> </filter> <filter-mapping> *************** *** 35,39 **** <servlet> <servlet-name>demosigner</servlet-name> ! <servlet-class>org.neuclear.signers.servlet.DemoSigningServlet</servlet-class> <init-param> <param-name>title</param-name> --- 35,39 ---- <servlet> <servlet-name>demosigner</servlet-name> ! <servlet-class>org.neuclear.id.signers.DemoSigningServlet</servlet-class> <init-param> <param-name>title</param-name> *************** *** 44,48 **** <servlet> <servlet-name>authenticator</servlet-name> ! <servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> --- 44,48 ---- <servlet> <servlet-name>authenticator</servlet-name> ! <servlet-class>org.neuclear.id.auth.AuthenticationServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> |
|
From: <pe...@us...> - 2004-03-02 19:11:18
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/test/org/neuclear/id Modified Files: NeuClearBenchmark.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: NeuClearBenchmark.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/NeuClearBenchmark.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** NeuClearBenchmark.java 13 Jan 2004 23:38:26 -0000 1.2 --- NeuClearBenchmark.java 2 Mar 2004 18:59:12 -0000 1.3 *************** *** 1,5 **** package org.neuclear.id; ! import org.neuclear.auth.AuthenticationTicket; import org.neuclear.commons.crypto.signers.InvalidPassphraseException; import org.neuclear.commons.crypto.signers.Signer; --- 1,5 ---- package org.neuclear.id; ! import org.neuclear.id.auth.AuthenticationTicket; import org.neuclear.commons.crypto.signers.InvalidPassphraseException; import org.neuclear.commons.crypto.signers.Signer; |
|
From: <pe...@us...> - 2004-03-02 19:11:17
|
Update of /cvsroot/neuclear/neuclear-id/src/test-cactus/org/neuclear/id/signers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/test-cactus/org/neuclear/id/signers Added Files: SigningServletTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- NEW FILE: SigningServletTest.java --- package org.neuclear.id.signers; import com.meterware.httpunit.WebForm; import org.apache.cactus.ServletTestCase; import org.apache.cactus.WebRequest; import org.neuclear.id.auth.AuthenticationTicket; import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; import org.neuclear.commons.crypto.Base64; import org.neuclear.commons.crypto.signers.JCESigner; import org.neuclear.commons.crypto.signers.TestCaseSigner; import org.neuclear.id.SignatureRequest; import org.neuclear.id.SignedNamedObject; import org.neuclear.id.builders.AuthenticationTicketBuilder; import org.neuclear.id.builders.SignatureRequestBuilder; import org.neuclear.id.verifier.VerifyingReader; import org.neuclear.xml.XMLException; import org.xml.sax.SAXException; import javax.servlet.ServletException; import java.io.ByteArrayInputStream; import java.io.IOException; import java.security.GeneralSecurityException; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: SigningServletTest.java,v 1.1 2004/03/02 18:59:13 pelle Exp $ $Log: SigningServletTest.java,v $ Revision 1.1 2004/03/02 18:59:13 pelle Further cleanups in neuclear-id. Moved everything under id. Revision 1.4 2004/01/19 23:49:45 pelle Unit testing uncovered further issues with Base32 NSTools is now uptodate as are many other classes. All transactional builders habe been updated. Well on the way towards full "green" on Junit. Revision 1.3 2003/12/20 00:21:19 pelle overwrote the standard Object.toString(), hashCode() and equals() methods for SignedNamedObject/Core fixed cactus tests Added TransferRequestServlet Added cactus tests to pay Revision 1.2 2003/12/12 19:28:03 pelle All the Cactus tests now for signing signers. Added working AuthenticationFilterTest Returned original functionality to DemoSigningServlet. This is set up to use the test keys stored in neuclear-commons. SigningServlet should now work for general use. It uses the default keystore. Will add configurability later. It also uses the GUIDialogAgent. Revision 1.1 2003/12/12 15:12:50 pelle The ReceiverServletTest now passes. Add first stab at a SigningServletTest which currently doesnt pass. Revision 1.4 2003/12/12 12:32:54 pelle Working on getting the SOAPServletTest working under cactus Revision 1.3 2003/12/11 23:57:30 pelle Trying to test the ReceiverServlet with cactus. Still no luck. Need to return a ElementProxy of some sort. Cleaned up some missing fluff in the ElementProxy interface. getTagName(), getQName() and getNameSpace() have been killed. Revision 1.2 2003/11/28 00:12:59 pelle Getting the NeuClear web transactions working. Revision 1.1 2003/11/24 23:33:38 pelle More Cactus unit testing going on. */ /** * User: pelleb * Date: Nov 24, 2003 * Time: 5:08:05 PM */ public class SigningServletTest extends ServletTestCase { public SigningServletTest(String string) throws GeneralSecurityException, NeuClearException { super(string); signer = new TestCaseSigner(); } public void beginSign(WebRequest theRequest) throws GeneralSecurityException, NeuClearException, XMLException { AuthenticationTicketBuilder authreq = new AuthenticationTicketBuilder("neu://bob@test", "neu://test", "http://localhost"); SignatureRequestBuilder sigreq = new SignatureRequestBuilder("neu://bob@test", authreq, "test"); SignedNamedObject signed = sigreq.convert("neu://test",signer); theRequest.setContentType("application/x-www-form-urlencoded"); String b64 = Base64.encode(signed.getEncoded().getBytes()); theRequest.addParameter("neuclear-request", b64, "POST"); theRequest.addParameter("endpoint", "http://localhost", "POST"); theRequest.addParameter("passphrase", "neuclear", "POST"); theRequest.addParameter("sign", "Sign", "POST"); theRequest.setURL("http://users.neuclear.org", "/test", "/Receiver", null, null); } public void testSign() throws ServletException, IOException { assertEquals(request.getContentType(), "application/x-www-form-urlencoded"); assertEquals(request.getMethod(), "POST"); SigningServlet servlet = new DemoSigningServlet(); servlet.init(config); servlet.service(request, response); } public void endSign(com.meterware.httpunit.WebResponse theResponse) throws SAXException, NeuClearException, XMLException { // assertEquals("NeuClear Signing Service", theResponse.getTitle()); WebForm forms[] = theResponse.getForms(); assertNotNull(forms); assertEquals(1, forms.length); assertTrue(forms[0].hasParameterNamed("neuclear-request")); String encoded = forms[0].getParameterValue("neuclear-request"); assertTrue(!Utility.isEmpty(encoded)); final SignedNamedObject obj = VerifyingReader.getInstance().read(new ByteArrayInputStream(Base64.decode(encoded))); assertNotNull(obj); assertTrue(obj instanceof AuthenticationTicket); AuthenticationTicket ticket = (AuthenticationTicket) obj; assertEquals(ticket.getSignatory().getName(), "neu://bob@test"); assertEquals("http://localhost", forms[0].getAction()); } public void beginSignatureRequest(WebRequest theRequest) throws GeneralSecurityException, NeuClearException, XMLException { AuthenticationTicketBuilder authreq = new AuthenticationTicketBuilder("neu://bob@test", "neu://test", "http://localhost"); SignatureRequestBuilder sigreq = new SignatureRequestBuilder( "neu://bob@test", authreq, "test"); SignedNamedObject signed = sigreq.convert("neu://test",signer); theRequest.setContentType("application/x-www-form-urlencoded"); String b64 = Base64.encode(signed.getEncoded().getBytes()); theRequest.addParameter("neuclear-request", b64, "POST"); theRequest.addParameter("endpoint", "http://localhost", "POST"); theRequest.setURL("http://users.neuclear.org", "/test", "/Receiver", null, null); } public void testSignatureRequest() throws ServletException, IOException { assertEquals(request.getContentType(), "application/x-www-form-urlencoded"); assertEquals(request.getMethod(), "POST"); SigningServlet servlet = new DemoSigningServlet(); servlet.init(config); servlet.service(request, response); } public void endSignatureRequest(com.meterware.httpunit.WebResponse theResponse) throws SAXException, NeuClearException, XMLException { // assertEquals("NeuClear Signing Service", theResponse.getTitle()); WebForm forms[] = theResponse.getForms(); assertNotNull(forms); assertEquals(1, forms.length); assertTrue(forms[0].hasParameterNamed("neuclear-request")); String encoded = forms[0].getParameterValue("neuclear-request"); assertTrue(!Utility.isEmpty(encoded)); final SignedNamedObject obj = VerifyingReader.getInstance().read(new ByteArrayInputStream(Base64.decode(encoded))); assertNotNull(obj); assertTrue(obj instanceof SignatureRequest); SignatureRequest sigreq = (SignatureRequest) obj; assertEquals(sigreq.getSignatory().getName(), "neu://test"); assertTrue(forms[0].hasParameterNamed("endpoint")); assertEquals("http://localhost", forms[0].getParameterValue("endpoint")); } JCESigner signer; } |
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/java/org/neuclear/signers/servlet Removed Files: DemoSigningServlet.java SignatureRequestServlet.java SigningServlet.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- DemoSigningServlet.java DELETED --- --- SignatureRequestServlet.java DELETED --- --- SigningServlet.java DELETED --- |
|
From: <pe...@us...> - 2004-03-02 19:11:17
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/builders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/test/org/neuclear/id/builders Modified Files: AuthenticationBuilderTest.java SigningRequestBuilderTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: AuthenticationBuilderTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/builders/AuthenticationBuilderTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AuthenticationBuilderTest.java 13 Jan 2004 23:38:26 -0000 1.7 --- AuthenticationBuilderTest.java 2 Mar 2004 18:59:12 -0000 1.8 *************** *** 1,5 **** package org.neuclear.id.builders; ! import org.neuclear.auth.AuthenticationTicket; import org.neuclear.commons.NeuClearException; import org.neuclear.id.InvalidNamedObjectException; --- 1,5 ---- package org.neuclear.id.builders; ! import org.neuclear.id.auth.AuthenticationTicket; import org.neuclear.commons.NeuClearException; import org.neuclear.id.InvalidNamedObjectException; *************** *** 29,32 **** --- 29,35 ---- $Id$ $Log$ + Revision 1.8 2004/03/02 18:59:12 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.7 2004/01/13 23:38:26 pelle Refactoring parts of the core of XMLSignature. There shouldnt be any real API changes. Index: SigningRequestBuilderTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/builders/SigningRequestBuilderTest.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** SigningRequestBuilderTest.java 20 Jan 2004 17:39:13 -0000 1.10 --- SigningRequestBuilderTest.java 2 Mar 2004 18:59:12 -0000 1.11 *************** *** 1,5 **** package org.neuclear.id.builders; ! import org.neuclear.auth.AuthenticationTicket; import org.neuclear.commons.NeuClearException; import org.neuclear.id.InvalidNamedObjectException; --- 1,5 ---- package org.neuclear.id.builders; ! import org.neuclear.id.auth.AuthenticationTicket; import org.neuclear.commons.NeuClearException; import org.neuclear.id.InvalidNamedObjectException; *************** *** 30,33 **** --- 30,36 ---- $Id$ $Log$ + Revision 1.11 2004/03/02 18:59:12 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.10 2004/01/20 17:39:13 pelle Further updates to unit tests |
|
From: <pe...@us...> - 2004-03-02 19:11:17
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/java/org/neuclear/tests Modified Files: AbstractReceiverTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: AbstractReceiverTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests/AbstractReceiverTest.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** AbstractReceiverTest.java 11 Dec 2003 23:57:29 -0000 1.6 --- AbstractReceiverTest.java 2 Mar 2004 18:59:12 -0000 1.7 *************** *** 6,10 **** import org.neuclear.id.SignedNamedObject; import org.neuclear.id.verifier.VerifyingReader; ! import org.neuclear.receiver.Receiver; import org.neuclear.xml.XMLException; --- 6,10 ---- import org.neuclear.id.SignedNamedObject; import org.neuclear.id.verifier.VerifyingReader; ! import org.neuclear.id.receiver.Receiver; import org.neuclear.xml.XMLException; *************** *** 32,35 **** --- 32,38 ---- $Id$ $Log$ + Revision 1.7 2004/03/02 18:59:12 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.6 2003/12/11 23:57:29 pelle Trying to test the ReceiverServlet with cactus. Still no luck. Need to return a ElementProxy of some sort. |
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/java/org/neuclear/senders Removed Files: LogSender.java NeuSender.java Sender.java SmtpSender.java SoapSender.java UnsupportedEndpointException.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- LogSender.java DELETED --- --- NeuSender.java DELETED --- --- Sender.java DELETED --- --- SmtpSender.java DELETED --- --- SoapSender.java DELETED --- --- UnsupportedEndpointException.java DELETED --- |
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/senders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/java/org/neuclear/id/senders Added Files: LogSender.java NeuSender.java Sender.java SmtpSender.java SoapSender.java UnsupportedEndpointException.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- NEW FILE: LogSender.java --- package org.neuclear.id.senders; import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; import org.neuclear.commons.crypto.Base64; import org.neuclear.commons.time.TimeTools; import org.neuclear.id.SignedNamedObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; import java.sql.Timestamp; import java.text.ParseException; /** * (C) 2003 Antilles Software Ventures SA * User: pelleb * Date: Feb 14, 2003 * Time: 1:23:05 PM * $Id: LogSender.java,v 1.1 2004/03/02 18:59:10 pelle Exp $ * $Log: LogSender.java,v $ * Revision 1.1 2004/03/02 18:59:10 pelle * Further cleanups in neuclear-id. Moved everything under id. * * Revision 1.16 2004/02/18 00:14:33 pelle * Many, many clean ups. I've readded Targets in a new method. * Gotten rid of NamedObjectBuilder and revamped Identity and Resolvers * * Revision 1.15 2004/01/10 00:03:21 pelle * Implemented new Schema for Transfer* * Working on it for Exchange*, so far all Receipts are implemented. * Added SignedNamedDocument which is a generic SignedNamedObject that works with all Signed XML. * Changed SignedNamedObject.getDigest() from byte array to String. * The whole malarchy in neuclear-pay does not build yet. The refactoring is a big job, but getting there. * * Revision 1.14 2003/12/19 18:03:35 pelle * Revamped a lot of exception handling throughout the framework, it has been simplified in most places: * - For most cases the main exception to worry about now is InvalidNamedObjectException. * - Most lowerlevel exception that cant be handled meaningful are now wrapped in the LowLevelException, a * runtime exception. * - Source and Store patterns each now have their own exceptions that generalizes the various physical * exceptions that can happen in that area. * * Revision 1.13 2003/12/10 23:58:52 pelle * Did some cleaning up in the builders * Fixed some stuff in IdentityCreator * New maven goal to create executable jarapp * We are close to 0.8 final of ID, 0.11 final of XMLSIG and 0.5 of commons. * Will release shortly. * * Revision 1.12 2003/11/21 04:45:13 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). * <p/> * Revision 1.11 2003/11/19 23:33:59 pelle * Signers now can generatekeys via the generateKey() method. * Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit. * SignedNamedObject now contains the full xml which is returned with getEncoded() * This means that it is now possible to further receive on or process a SignedNamedObject, leaving * NamedObjectBuilder for its original purposes of purely generating new Contracts. * NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it. * Updated all major interfaces that used the old model to use the new model. * <p/> * Revision 1.10 2003/11/11 21:18:43 pelle * Further vital reshuffling. * org.neudist.crypto.* and org.neudist.utils.* have been moved to respective areas under org.neuclear.commons * org.neuclear.signers.* as well as org.neuclear.passphraseagents have been moved under org.neuclear.commons.crypto as well. * Did a bit of work on the Canonicalizer and changed a few other minor bits. * <p/> * Revision 1.9 2003/11/09 03:27:19 pelle * More house keeping and shuffling about mainly pay * <p/> * Revision 1.8 2003/10/21 22:31:13 pelle * Renamed NeudistException to NeuClearException and moved it to org.neuclear.commons where it makes more sense. * Unhooked the XMLException in the xmlsig library from NeuClearException to make all of its exceptions an independent hierarchy. * Obviously had to perform many changes throughout the code to support these changes. * <p/> * Revision 1.7 2003/09/29 23:17:32 pelle * Changes to the senders. Now the senders only work with NamedObjectBuilders * which are the only NamedObject representations that contain full XML. * <p/> * Revision 1.6 2003/09/26 23:53:10 pelle * Changes mainly in receiver and related fun. * First real neuclear stuff in the payment package. Added TransferContract and AssetControllerReceiver. * <p/> * Revision 1.5 2003/09/26 00:22:07 pelle * Cleanups and final changes to code for refactoring of the Verifier and Reader part. * <p/> * Revision 1.4 2003/09/24 23:56:48 pelle * Refactoring nearly done. New model for creating signed objects. * With view for supporting the xmlpull api shortly for performance reasons. * Currently still uses dom4j but that has been refactored out that it * should now be very quick to implement a xmlpull implementation. * <p/> * A side benefit of this is that the API has been further simplified. I still have some work * todo with regards to cleaning up some of the outlying parts of the code. * <p/> * Revision 1.3 2003/09/23 19:16:28 pelle * Changed NameSpace to Identity. * To cause less confusion in the future. * <p/> * Revision 1.2 2003/09/22 19:24:02 pelle * More fixes throughout to problems caused by renaming. * <p/> * Revision 1.1.1.1 2003/09/19 14:41:29 pelle * First import into the neuclear project. This was originally under the SF neuclear * project. This marks a general major refactoring and renaming ahead. * <p/> * The new name for this code is NeuClear Identity and has the general package header of * org.neuclear.id * There are other areas within the current code which will be split out into other subprojects later on. * In particularly the signers will be completely seperated out as well as the contract types. * <p/> * <p/> * Revision 1.2 2003/02/16 00:23:05 pelle * LogSender now works and there is a corresponding server side cgi script to do the logging in * http://neuclear.org/logger/ Site is not yet up but will be soon. * <p/> * Revision 1.1 2003/02/14 21:10:34 pelle * The email sender works. The LogSender and the SoapSender should work but havent been tested yet. * The SignedNamedObject has a new log() method that logs it's contents at it's parent Identity's logger. * The Identity object also has a new method receive() which allows one to receive a named object to the Identity's * default receiver. */ public final class LogSender extends Sender { public final SignedNamedObject send(final String endpoint, final SignedNamedObject obj) throws NeuClearException { try { final String digest = obj.getDigest(); final String name = URLEncoder.encode(obj.getName(), "UTF-8"); final URL url = new URL(Utility.denullString(endpoint, LOGGER) + "?nohtml=1&name=" + name + "&digest=" + digest); url.openStream(); // BufferedReader reader=new BufferedReader(new InputStreamReader(url.openStream())); // String line=reader.readLine(); // if (!line.substring(0,2).equals("OK")) // TODO We need to be able to sense if there is a real error // System.err.println("Error logging: "+line); //throw new NeuClearException("Object wasn't logged"); } catch (MalformedURLException e) { Utility.rethrowException(e); } catch (IOException e) { Utility.rethrowException(e); } return null;// } /* public static void main(String args[]) { try { logObject("neu://free"); logObject("neu://free/pelle"); logObject("neu://pelle"); System.out.println("Object neu://free/pelle was logged at: " + getTimeStamp(NSResolver.resolveIdentity("neu://free/pelle"))); } catch (NeuClearException e) { e.printStackTrace(); //To change body of catch statement use Options | File Templates. } } */ public static Timestamp getTimeStamp(final String endpoint, final byte[] rdigest) throws NeuClearException { try { final String digest = Base64.encode(rdigest); // System.out.println(digest); final String encdigest = URLEncoder.encode(digest, "UTF-8"); URL url = null; url = new URL(LOGGER + "?mode=Query&nohtml=1&digest=" + encdigest); final BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); final String line = reader.readLine(); // System.out.println(line); final int pos = line.indexOf('\t'); if (pos >= 0) { final String stamp = line.substring(0, pos); return TimeTools.parseTimeStamp(stamp); } } catch (MalformedURLException e) { Utility.rethrowException(e); //To change body of catch statement use Options | File Templates. } catch (IOException e) { Utility.rethrowException(e); //To change body of catch statement use Options | File Templates. } catch (ParseException e) { Utility.rethrowException(e); //To change body of catch statement use Options | File Templates. } return null; } /* public static Timestamp getTimeStamp(final SignedNamedObject obj) throws NeuClearException { return getTimeStamp(Utility.denullString(obj.getSignatory().getLogger(), LOGGER), obj.getEncoded().getBytes()); } */ /* private static void logObject(String name) throws NeuClearException { System.out.print("Fetching..."); SignedNamedObject obj = NSResolver.resolveIdentity(name); System.out.println("Got " + obj.getName()); Sender log = new LogSender(); System.out.print("Logging..."); log.receive(LOGGER, obj); System.out.println("Done"); } */ public static final String LOGGER = "http://logger.neuclear.org/log.cgi"; } --- NEW FILE: NeuSender.java --- package org.neuclear.id.senders; import org.neuclear.id.SignedNamedObject; import org.neuclear.id.NSTools; import org.neuclear.id.Identity; import org.neuclear.id.resolver.NSResolver; import org.neuclear.commons.NeuClearException; import org.neuclear.xml.XMLException; /** * Created by IntelliJ IDEA. * User: pelleb * Date: Dec 16, 2003 * Time: 8:42:56 AM * To change this template use Options | File Templates. */ public class NeuSender extends Sender{ public SignedNamedObject send(String endpoint, SignedNamedObject obj) throws NeuClearException, XMLException, UnsupportedEndpointException { if (NSTools.isValidName(endpoint)){ Identity id=NSResolver.resolveIdentity(endpoint); return id.receive(obj); } throw new UnsupportedEndpointException(this,endpoint); } } --- NEW FILE: Sender.java --- package org.neuclear.id.senders; /** * (C) 2003 Antilles Software Ventures SA * User: pelleb * Date: Feb 14, 2003 * Time: 9:29:29 AM * $Id: Sender.java,v 1.1 2004/03/02 18:59:10 pelle Exp $ * $Log: Sender.java,v $ * Revision 1.1 2004/03/02 18:59:10 pelle * Further cleanups in neuclear-id. Moved everything under id. * * Revision 1.15 2004/02/19 15:30:21 pelle * Various cleanups and corrections * * Revision 1.14 2003/12/16 15:05:00 pelle * Added SignedMessage contract for signing simple textual contracts. * Added NeuSender, updated SmtpSender and Sender to take plain email addresses (without the mailto:) * Added AbstractObjectCreationTest to make it quicker to write unit tests to verify * NamedObjectBuilder/SignedNamedObject Pairs. * Sample application has been expanded with a basic email application. * Updated docs for sample web app. * Added missing LGPL LICENSE.txt files to signer and sample app * * Revision 1.13 2003/12/10 23:58:52 pelle * Did some cleaning up in the builders * Fixed some stuff in IdentityCreator * New maven goal to create executable jarapp * We are close to 0.8 final of ID, 0.11 final of XMLSIG and 0.5 of commons. * Will release shortly. * * Revision 1.12 2003/11/21 04:45:13 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.11 2003/11/19 23:33:59 pelle * Signers now can generatekeys via the generateKey() method. * Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit. * SignedNamedObject now contains the full xml which is returned with getEncoded() * This means that it is now possible to further receive on or process a SignedNamedObject, leaving * NamedObjectBuilder for its original purposes of purely generating new Contracts. * NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it. * Updated all major interfaces that used the old model to use the new model. * * Revision 1.10 2003/11/11 21:18:43 pelle * Further vital reshuffling. * org.neudist.crypto.* and org.neudist.utils.* have been moved to respective areas under org.neuclear.commons * org.neuclear.signers.* as well as org.neuclear.passphraseagents have been moved under org.neuclear.commons.crypto as well. * Did a bit of work on the Canonicalizer and changed a few other minor bits. * * Revision 1.9 2003/11/10 17:42:36 pelle * The AssetController interface has been more or less finalized. * CurrencyController fully implemented * AssetControlClient implementes a remote client for communicating with AssetControllers * * Revision 1.8 2003/11/09 03:27:19 pelle * More house keeping and shuffling about mainly pay * * Revision 1.7 2003/11/08 01:40:52 pelle * WARNING this rev is majorly unstable and will almost certainly not compile. * More major refactoring in neuclear-pay. * Got rid of neuclear-ledger like features of pay such as Account and Issuer. * Accounts have been replaced by Identity from neuclear-id * Issuer is now Asset which is a subclass of Identity * AssetController supports more than one Asset. Which is important for most non ecurrency implementations. * TransferRequest/Receipt and its Held companions are now SignedNamedObjects. Thus to create them you must use * their matching TransferRequest/ReceiptBuilder classes. * PaymentProcessor has been renamed CurrencyController. I will extract a superclass later to be named AbstractLedgerController * which will handle all neuclear-ledger based AssetControllers. * * Revision 1.6 2003/11/06 23:48:59 pelle * Major Refactoring of CurrencyController. * Factored out AssetController to be new abstract parent class together with most of its support classes. * Created (Half way) AssetControlClient, which can perform transactions on external AssetControllers via NeuClear. * Created the first attempt at the ExchangeAgent. This will need use of the AssetControlClient. * SOAPTools was changed to return a stream. This is required by the VerifyingReader in NeuClear. * * Revision 1.5 2003/10/21 22:31:13 pelle * Renamed NeudistException to NeuClearException and moved it to org.neuclear.commons where it makes more sense. * Unhooked the XMLException in the xmlsig library from NeuClearException to make all of its exceptions an independent hierarchy. * Obviously had to perform many changes throughout the code to support these changes. * * Revision 1.4 2003/09/29 23:17:32 pelle * Changes to the senders. Now the senders only work with NamedObjectBuilders * which are the only NamedObject representations that contain full XML. * */ import org.neuclear.commons.NeuClearException; import org.neuclear.id.SignedNamedObject; import org.neuclear.xml.XMLException; import java.util.HashMap; import java.util.Map; public abstract class Sender { public abstract SignedNamedObject send(String endpoint, SignedNamedObject obj) throws NeuClearException, XMLException, UnsupportedEndpointException; public static SignedNamedObject quickSend(final String endpoint, final SignedNamedObject obj) throws NeuClearException { final String protocol = getProtocol(endpoint); final Sender sender = getSender(protocol); if (sender == null) throw new NeuClearException("Unsupported Send Protocol:" + endpoint.toString()); try { return sender.send(endpoint, obj); } catch (XMLException e) { throw new NeuClearException(e); } } private static String getProtocol(final String endpoint) throws NeuClearException { final int protloc = endpoint.indexOf(":"); final int atloc = endpoint.indexOf("@"); if (protloc < 0 && atloc < 0) throw new NeuClearException(endpoint + "Is not in URL format"); if (protloc >= 0) return endpoint.substring(0, protloc); return "mailto"; } public static Sender getSender(final String protocol) { makeSenders(); return (Sender) SENDERS.get(protocol); } private static HashMap makeSenders() { HashMap map = new HashMap(); map.put("soap", new SoapSender()); map.put("http", new SoapSender()); map.put("mailto", new SmtpSender()); map.put("neu", new NeuSender()); return map; } private static final Map SENDERS = makeSenders(); } --- NEW FILE: SmtpSender.java --- package org.neuclear.id.senders; /** * (C) 2003 Antilles Software Ventures SA * User: pelleb * Date: Feb 14, 2003 * Time: 9:52:38 AM * $Id: SmtpSender.java,v 1.1 2004/03/02 18:59:10 pelle Exp $ * $Log: SmtpSender.java,v $ * Revision 1.1 2004/03/02 18:59:10 pelle * Further cleanups in neuclear-id. Moved everything under id. * * Revision 1.17 2004/02/18 00:14:33 pelle * Many, many clean ups. I've readded Targets in a new method. * Gotten rid of NamedObjectBuilder and revamped Identity and Resolvers * * Revision 1.16 2003/12/16 15:05:00 pelle * Added SignedMessage contract for signing simple textual contracts. * Added NeuSender, updated SmtpSender and Sender to take plain email addresses (without the mailto:) * Added AbstractObjectCreationTest to make it quicker to write unit tests to verify * NamedObjectBuilder/SignedNamedObject Pairs. * Sample application has been expanded with a basic email application. * Updated docs for sample web app. * Added missing LGPL LICENSE.txt files to signer and sample app * * Revision 1.15 2003/12/10 23:58:52 pelle * Did some cleaning up in the builders * Fixed some stuff in IdentityCreator * New maven goal to create executable jarapp * We are close to 0.8 final of ID, 0.11 final of XMLSIG and 0.5 of commons. * Will release shortly. * * Revision 1.14 2003/11/21 04:45:13 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.13 2003/11/19 23:33:59 pelle * Signers now can generatekeys via the generateKey() method. * Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit. * SignedNamedObject now contains the full xml which is returned with getEncoded() * This means that it is now possible to further receive on or process a SignedNamedObject, leaving * NamedObjectBuilder for its original purposes of purely generating new Contracts. * NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it. * Updated all major interfaces that used the old model to use the new model. * * Revision 1.12 2003/11/11 21:18:43 pelle * Further vital reshuffling. * org.neudist.crypto.* and org.neudist.utils.* have been moved to respective areas under org.neuclear.commons * org.neuclear.signers.* as well as org.neuclear.passphraseagents have been moved under org.neuclear.commons.crypto as well. * Did a bit of work on the Canonicalizer and changed a few other minor bits. * * Revision 1.11 2003/11/10 17:42:36 pelle * The AssetController interface has been more or less finalized. * CurrencyController fully implemented * AssetControlClient implementes a remote client for communicating with AssetControllers * * Revision 1.10 2003/11/08 01:40:53 pelle * WARNING this rev is majorly unstable and will almost certainly not compile. * More major refactoring in neuclear-pay. * Got rid of neuclear-ledger like features of pay such as Account and Issuer. * Accounts have been replaced by Identity from neuclear-id * Issuer is now Asset which is a subclass of Identity * AssetController supports more than one Asset. Which is important for most non ecurrency implementations. * TransferRequest/Receipt and its Held companions are now SignedNamedObjects. Thus to create them you must use * their matching TransferRequest/ReceiptBuilder classes. * PaymentProcessor has been renamed CurrencyController. I will extract a superclass later to be named AbstractLedgerController * which will handle all neuclear-ledger based AssetControllers. * * Revision 1.9 2003/11/06 23:48:59 pelle * Major Refactoring of CurrencyController. * Factored out AssetController to be new abstract parent class together with most of its support classes. * Created (Half way) AssetControlClient, which can perform transactions on external AssetControllers via NeuClear. * Created the first attempt at the ExchangeAgent. This will need use of the AssetControlClient. * SOAPTools was changed to return a stream. This is required by the VerifyingReader in NeuClear. * * Revision 1.8 2003/10/25 00:39:54 pelle * Fixed SmtpSender it now sends the messages. * Refactored CommandLineSigner. Now it simply signs files read from command line. However new class IdentityCreator * is subclassed and creates new Identities. You can subclass CommandLineSigner to create your own variants. * Several problems with configuration. Trying to solve at the moment. Updated PicoContainer to beta-2 * * Revision 1.7 2003/10/21 22:31:13 pelle * Renamed NeudistException to NeuClearException and moved it to org.neuclear.commons where it makes more sense. * Unhooked the XMLException in the xmlsig library from NeuClearException to make all of its exceptions an independent hierarchy. * Obviously had to perform many changes throughout the code to support these changes. * * Revision 1.6 2003/09/29 23:17:32 pelle * Changes to the senders. Now the senders only work with NamedObjectBuilders * which are the only NamedObject representations that contain full XML. * * Revision 1.5 2003/09/26 00:22:07 pelle * Cleanups and final changes to code for refactoring of the Verifier and Reader part. * * Revision 1.4 2003/09/24 23:56:48 pelle * Refactoring nearly done. New model for creating signed objects. * With view for supporting the xmlpull api shortly for performance reasons. * Currently still uses dom4j but that has been refactored out that it * should now be very quick to implement a xmlpull implementation. * * A side benefit of this is that the API has been further simplified. I still have some work * todo with regards to cleaning up some of the outlying parts of the code. * * Revision 1.3 2003/09/23 19:16:28 pelle * Changed NameSpace to Identity. * To cause less confusion in the future. * * Revision 1.2 2003/09/22 19:24:02 pelle * More fixes throughout to problems caused by renaming. * * Revision 1.1.1.1 2003/09/19 14:41:29 pelle * First import into the neuclear project. This was originally under the SF neuclear * project. This marks a general major refactoring and renaming ahead. * * The new name for this code is NeuClear Identity and has the general package header of * org.neuclear.id * There are other areas within the current code which will be split out into other subprojects later on. * In particularly the signers will be completely seperated out as well as the contract types. * * * Revision 1.1 2003/02/14 21:10:35 pelle * The email sender works. The LogSender and the SoapSender should work but havent been tested yet. * The SignedNamedObject has a new log() method that logs it's contents at it's parent Identity's logger. * The Identity object also has a new method receive() which allows one to receive a named object to the Identity's * default receiver. * */ import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; import org.neuclear.id.SignedNamedObject; import javax.mail.*; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeBodyPart; import javax.mail.internet.MimeMessage; import javax.mail.internet.MimeMultipart; import java.util.Date; import java.util.Properties; import java.util.regex.Pattern; public final class SmtpSender extends Sender { public final SignedNamedObject send(String endpoint, final SignedNamedObject obj) throws NeuClearException,UnsupportedEndpointException { final Properties props = System.getProperties(); if (endpoint.startsWith("mailto:")) endpoint = endpoint.substring(7); // -- Attaching to default Session, or we could start a new one -- props.put("mail.smtp.host", "neuclear.org");// TODO Remove this hardcoded mail server final Session session = Session.getDefaultInstance(props, null); try { // -- Create a new message -- final Message msg = new MimeMessage(session); // -- Set the FROM and TO fields -- msg.setFrom(new InternetAddress(getSender(obj)));// TODO Remove this hardcoded email msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(endpoint, false)); // -- We could include CC recipients too -- // if (cc != null) // msg.setRecipients(Message.RecipientType.CC // ,InternetAddress.parse(cc, false)); // -- Set the subject and body text -- msg.setSubject("You have received a New Named Object: " + obj.getName()); final BodyPart body = new MimeBodyPart(); body.setText("This message contains a signed named object. Please see http://neuclear.org for more info."); final Multipart multi = new MimeMultipart(); multi.addBodyPart(body); final BodyPart objpart = new MimeBodyPart(); objpart.setText(obj.getEncoded()); objpart.setHeader("Content-type", "application/nsdl"); multi.addBodyPart(objpart); msg.setContent(multi); msg.setHeader("X-Mailer", "NeuDist Framework"); msg.setSentDate(new Date()); // -- Send the message -- Transport.send(msg); } catch (MessagingException e) { e.printStackTrace(); //To change body of catch statement use Options | File Templates. Utility.rethrowException(e); } return null;// We never receive a response } private String getSender(final SignedNamedObject obj) { // Identity senderid=obj.getSignatory(); // final Matcher matcher = SENDER.matcher(senderid.getReceiver()); // if (matcher.matches()) // return matcher.group(2) ; return "du...@ne..."; } private static final Pattern SENDER = Pattern.compile("^(mailto:)([\\w-.]+\\@[\\w-.]+)"); } --- NEW FILE: SoapSender.java --- package org.neuclear.id.senders; /** * (C) 2003 Antilles Software Ventures SA * User: pelleb * Date: Feb 14, 2003 * Time: 9:50:30 AM * $Id: SoapSender.java,v 1.1 2004/03/02 18:59:10 pelle Exp $ * $Log: SoapSender.java,v $ * Revision 1.1 2004/03/02 18:59:10 pelle * Further cleanups in neuclear-id. Moved everything under id. * * Revision 1.14 2003/12/10 23:58:52 pelle * Did some cleaning up in the builders * Fixed some stuff in IdentityCreator * New maven goal to create executable jarapp * We are close to 0.8 final of ID, 0.11 final of XMLSIG and 0.5 of commons. * Will release shortly. * * Revision 1.13 2003/11/21 04:45:13 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.12 2003/11/19 23:33:59 pelle * Signers now can generatekeys via the generateKey() method. * Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit. * SignedNamedObject now contains the full xml which is returned with getEncoded() * This means that it is now possible to further receive on or process a SignedNamedObject, leaving * NamedObjectBuilder for its original purposes of purely generating new Contracts. * NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it. * Updated all major interfaces that used the old model to use the new model. * * Revision 1.11 2003/11/11 21:18:43 pelle * Further vital reshuffling. * org.neudist.crypto.* and org.neudist.utils.* have been moved to respective areas under org.neuclear.commons * org.neuclear.signers.* as well as org.neuclear.passphraseagents have been moved under org.neuclear.commons.crypto as well. * Did a bit of work on the Canonicalizer and changed a few other minor bits. * * Revision 1.10 2003/11/10 17:42:36 pelle * The AssetController interface has been more or less finalized. * CurrencyController fully implemented * AssetControlClient implementes a remote client for communicating with AssetControllers * * Revision 1.9 2003/11/08 01:40:53 pelle * WARNING this rev is majorly unstable and will almost certainly not compile. * More major refactoring in neuclear-pay. * Got rid of neuclear-ledger like features of pay such as Account and Issuer. * Accounts have been replaced by Identity from neuclear-id * Issuer is now Asset which is a subclass of Identity * AssetController supports more than one Asset. Which is important for most non ecurrency implementations. * TransferRequest/Receipt and its Held companions are now SignedNamedObjects. Thus to create them you must use * their matching TransferRequest/ReceiptBuilder classes. * PaymentProcessor has been renamed CurrencyController. I will extract a superclass later to be named AbstractLedgerController * which will handle all neuclear-ledger based AssetControllers. * * Revision 1.8 2003/11/06 23:48:59 pelle * Major Refactoring of CurrencyController. * Factored out AssetController to be new abstract parent class together with most of its support classes. * Created (Half way) AssetControlClient, which can perform transactions on external AssetControllers via NeuClear. * Created the first attempt at the ExchangeAgent. This will need use of the AssetControlClient. * SOAPTools was changed to return a stream. This is required by the VerifyingReader in NeuClear. * * Revision 1.7 2003/10/21 22:31:13 pelle * Renamed NeudistException to NeuClearException and moved it to org.neuclear.commons where it makes more sense. * Unhooked the XMLException in the xmlsig library from NeuClearException to make all of its exceptions an independent hierarchy. * Obviously had to perform many changes throughout the code to support these changes. * * Revision 1.6 2003/09/29 23:17:32 pelle * Changes to the senders. Now the senders only work with NamedObjectBuilders * which are the only NamedObject representations that contain full XML. * * Revision 1.5 2003/09/26 00:22:07 pelle * Cleanups and final changes to code for refactoring of the Verifier and Reader part. * * Revision 1.4 2003/09/24 23:56:48 pelle * Refactoring nearly done. New model for creating signed objects. * With view for supporting the xmlpull api shortly for performance reasons. * Currently still uses dom4j but that has been refactored out that it * should now be very quick to implement a xmlpull implementation. * * A side benefit of this is that the API has been further simplified. I still have some work * todo with regards to cleaning up some of the outlying parts of the code. * * Revision 1.3 2003/09/23 19:16:28 pelle * Changed NameSpace to Identity. * To cause less confusion in the future. * * Revision 1.2 2003/09/22 19:24:02 pelle * More fixes throughout to problems caused by renaming. * * Revision 1.1.1.1 2003/09/19 14:41:29 pelle * First import into the neuclear project. This was originally under the SF neuclear * project. This marks a general major refactoring and renaming ahead. * * The new name for this code is NeuClear Identity and has the general package header of * org.neuclear.id * There are other areas within the current code which will be split out into other subprojects later on. * In particularly the signers will be completely seperated out as well as the contract types. * * * Revision 1.1 2003/02/14 21:10:35 pelle * The email sender works. The LogSender and the SoapSender should work but havent been tested yet. * The SignedNamedObject has a new log() method that logs it's contents at it's parent Identity's logger. * The Identity object also has a new method receive() which allows one to receive a named object to the Identity's * default receiver. * */ import org.neuclear.commons.NeuClearException; import org.neuclear.id.SignedNamedObject; import org.neuclear.id.verifier.VerifyingReader; import org.neuclear.xml.XMLException; import org.neuclear.xml.soap.SOAPTools; public final class SoapSender extends Sender { public final SignedNamedObject send(final String endpoint, final SignedNamedObject obj) throws NeuClearException, XMLException { return VerifyingReader.getInstance().read(SOAPTools.soapRequest(endpoint, obj.getEncoded(), "/receive")); } } --- NEW FILE: UnsupportedEndpointException.java --- package org.neuclear.id.senders; import org.neuclear.commons.NeuClearException; /** * Created by IntelliJ IDEA. * User: pelleb * Date: Dec 16, 2003 * Time: 8:45:31 AM * To change this template use Options | File Templates. */ public class UnsupportedEndpointException extends NeuClearException { public UnsupportedEndpointException(Sender sender,String endpoint) { super("endpoint: "+endpoint+" not supported by: "+sender.getClass().getName()); this.endpoint=endpoint; this.sender=sender; } public String getEndpoint() { return endpoint; } public Sender getSender() { return sender; } private final String endpoint; private final Sender sender; } |
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/auth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/java/org/neuclear/id/auth Added Files: AuthenticationFilter.java AuthenticationServlet.java AuthenticationTicket.java DemoAuthenticationServlet.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- NEW FILE: AuthenticationFilter.java --- package org.neuclear.id.auth; import org.neuclear.commons.Utility; import org.neuclear.commons.crypto.Base64; import org.neuclear.id.Identity; import org.neuclear.id.SignedNamedObject; import org.neuclear.id.verifier.VerifyingReader; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequestWrapper; import javax.servlet.http.HttpSession; import java.io.ByteArrayInputStream; import java.io.IOException; import java.security.Principal; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: AuthenticationFilter.java,v 1.1 2004/03/02 18:59:10 pelle Exp $ $Log: AuthenticationFilter.java,v $ Revision 1.1 2004/03/02 18:59:10 pelle Further cleanups in neuclear-id. Moved everything under id. Revision 1.2 2003/11/21 04:45:10 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 2003/11/15 01:58:16 pelle More work all around on web applications. */ /** * User: pelleb * Date: Nov 14, 2003 * Time: 3:56:48 PM */ public final class AuthenticationFilter implements Filter { public final void init(final FilterConfig filterConfig) throws ServletException { serviceid = filterConfig.getInitParameter("serviceid"); ctx = filterConfig.getServletContext(); ctx.log("AUTH: Starting AuthenticationFilter"); } public final void doFilter(ServletRequest request, final ServletResponse response, final FilterChain chain) throws IOException, ServletException { final HttpSession sess = ((HttpServletRequest) request).getSession(true); ctx.log("AUTH: Filtering request: " + ((HttpServletRequest) request).getServletPath()); if (!Utility.isEmpty(request.getParameter("logout"))) { ctx.log("AUTH: Logging out"); sess.removeAttribute("NeuClearAuthTicket"); } try { AuthenticationTicket ticket = null; final String reqstring = request.getParameter("neuclear-request"); if (!Utility.isEmpty(reqstring)) { ctx.log("AUTH: Got neuclear-request"); final SignedNamedObject obj = VerifyingReader.getInstance().read(new ByteArrayInputStream(Base64.decode(reqstring))); if (obj instanceof AuthenticationTicket) { ticket = (AuthenticationTicket) obj; sess.setAttribute("NeuClearAuthTicket", ticket); } } else { ticket = (AuthenticationTicket) sess.getAttribute("NeuClearAuthTicket"); } if (ticket != null) { final Identity user = ticket.getSignatory(); request = new HttpServletRequestWrapper((HttpServletRequest) request) { public String getRemoteUser() { return user.getName(); //To change body of overriden methods use Options | File Templates. } public Principal getUserPrincipal() { return user; //To change body of overriden methods use Options | File Templates. } }; ctx.log("AUTH: logged in:" + user.getName()); } } catch (Exception e) { ctx.log("AUTH: " + e.getLocalizedMessage());// The errors arent important we ignore them } chain.doFilter(request, response); } public final void destroy() { } private String serviceid; private ServletContext ctx; } --- NEW FILE: AuthenticationServlet.java --- package org.neuclear.id.auth; import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; import org.neuclear.commons.crypto.signers.*; import org.neuclear.commons.crypto.passphraseagents.*; import org.neuclear.commons.crypto.CryptoTools; import org.neuclear.commons.servlets.ServletTools; import org.neuclear.id.builders.AuthenticationTicketBuilder; import org.neuclear.id.builders.SignatureRequestBuilder; import org.neuclear.id.builders.Builder; import org.neuclear.id.resolver.NSResolver; import org.neuclear.id.Identity; import org.neuclear.id.InvalidNamedObjectException; import org.neuclear.xml.XMLException; import org.neuclear.xml.xmlsec.XMLSecTools; import org.neuclear.xml.xmlsec.XMLSecurityException; import org.neuclear.id.signers.SignatureRequestServlet; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; import java.io.FileNotFoundException; import java.security.GeneralSecurityException; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: AuthenticationServlet.java,v 1.1 2004/03/02 18:59:10 pelle Exp $ $Log: AuthenticationServlet.java,v $ Revision 1.1 2004/03/02 18:59:10 pelle Further cleanups in neuclear-id. Moved everything under id. Revision 1.13 2004/01/12 22:39:26 pelle Completed all the builders and contracts. Added a new abstract Value class to contain either an amount or a list of serial numbers. Now ready to finish off the AssetControllers. Revision 1.12 2003/12/17 23:53:50 pelle Added SignatureRequestServlet which is abstract and can be used for building SignatureRequests for various applications. Revision 1.11 2003/12/16 15:04:59 pelle Added SignedMessage contract for signing simple textual contracts. Added NeuSender, updated SmtpSender and Sender to take plain email addresses (without the mailto:) Added AbstractObjectCreationTest to make it quicker to write unit tests to verify NamedObjectBuilder/SignedNamedObject Pairs. Sample application has been expanded with a basic email application. Updated docs for sample web app. Added missing LGPL LICENSE.txt files to signer and sample app Revision 1.10 2003/12/15 23:33:04 pelle added ServletTools.getInitParam() which first tries the ServletConfig, then the context config. All the web.xml's have been updated to support this. Also various further generalizations have been done throughout for getServiceid(), getTitle(), getSigner() Revision 1.9 2003/12/14 20:53:04 pelle Added ServletPassPhraseAgent which uses ThreadLocal to transfer the passphrase to the signer. Added ServletSignerFactory, which builds Signers for use within servlets based on parameters in the Servlets Init parameters in web.xml Updated SQLContext to use ThreadLocal Added jakarta cactus unit tests to neuclear-commons to test the 2 new features above. Added use of the new features in neuclear-commons to the servilets within neuclear-id and added configuration parameters in web.xml Revision 1.7 2003/12/10 23:58:51 pelle Did some cleaning up in the builders Fixed some stuff in IdentityCreator New maven goal to create executable jarapp We are close to 0.8 final of ID, 0.11 final of XMLSIG and 0.5 of commons. Will release shortly. Revision 1.6 2003/11/21 04:45:10 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.5 2003/11/18 23:35:45 pelle Payment Web Application is getting there. Revision 1.4 2003/11/15 01:58:16 pelle More work all around on web applications. Revision 1.3 2003/11/12 23:48:14 pelle Much work done in creating good test environment. PaymentReceiverTest works, but needs a abit more work in its environment to succeed testing. Revision 1.2 2003/11/11 21:18:42 pelle Further vital reshuffling. org.neudist.crypto.* and org.neudist.utils.* have been moved to respective areas under org.neuclear.commons org.neuclear.signers.* as well as org.neuclear.passphraseagents have been moved under org.neuclear.commons.crypto as well. Did a bit of work on the Canonicalizer and changed a few other minor bits. Revision 1.1 2003/11/06 20:01:52 pelle Implemented AuthenticationTicket and friends to comply with the newer model. Created SignatureRequest and friends to receive unsigned NamedObjectBuilders to interactive signing services. */ /** * User: pelleb * Date: Nov 6, 2003 * Time: 2:04:31 PM */ public class AuthenticationServlet extends SignatureRequestServlet { protected Builder createBuilder(final HttpServletRequest request) throws NeuClearException { final String userns = request.getParameter("identity"); request.getSession(true).setAttribute("auth", userns); return new AuthenticationTicketBuilder(userns, getServiceid(), request.getRequestURI()); } } --- NEW FILE: AuthenticationTicket.java --- /* * Created by IntelliJ IDEA. * User: pelleb * Date: Sep 14, 2002 * Time: 1:13:38 PM * To change template for new class use * Code Style | Class Templates options (Tools | IDE Options). */ package org.neuclear.id.auth; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.dom4j.Namespace; import org.dom4j.QName; import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; import org.neuclear.commons.time.TimeTools; import org.neuclear.id.*; import org.neuclear.xml.xmlsec.XMLSecurityException; import java.sql.Timestamp; import java.text.ParseException; /** * This Authentication Ticket is used by websites to authenticate a user. * It generates a unique Name in the users Identity, which the user then signs. */ public final class AuthenticationTicket extends SignedNamedObject { /** * <p>Used by a website to create an authentication ticket for validation.</p> * <p>Eg.:<br> * <tt>SignedNamedObject ticket=new AuthenticationTicket("neu://test/bob","neu://site/neubay",36000,"http://neubay.com");</tt><br> * Would give you a namedobject containing the following xml:<br> * <pre><auth:AuthenticationTicket xmlns:auth="http://neuclear.org/neu/auth" xmlns:nsdl="http://neuclear.org/neu/nsdl" nsdl:name="/test/two/neu.testapp.-2o1qkqrvxyesyt7dae22ulvp56eju30zyys5t6nxjjie2gw3qq" auth:validto="20021002T084919848GMT+00:00" auth:href="http://localhost:8080/neuclearframework/"> * </auth:AuthenticationTicket> * </pre> * * @param core * @param requester * @param validto * @param siteurl */ private AuthenticationTicket(final SignedNamedCore core, final String requester, final Timestamp validto, final String siteurl) { super(core); this.validTo = validto.getTime(); this.siteurl = siteurl; this.requester = requester; } /** * Get the end time of the validity of the ticket * * @return Timestamp object containing the end time of the ticket * @throws NeuClearException */ public final Timestamp getValidTo() throws NeuClearException { return new Timestamp(validTo); } /** * The Site URL of the site requesting authentication. * * @return the URL or null if unavailable. */ public final String getSiteHref() { return siteurl; } public final static class Reader implements NamedObjectReader { /** * Read object from Element and fill in its details * * @param elem * @return */ public final SignedNamedObject read(final SignedNamedCore core, final Element elem) throws InvalidNamedObjectException { final QName qelem=DocumentHelper.createQName(TAG_NAME,NS_NSAUTH); InvalidNamedObjectException.assertElementQName(core,elem,qelem); final QName qreq = DocumentHelper.createQName("requester", NS_NSAUTH); final String requester = InvalidNamedObjectException.assertAttributeQName(core,elem,qreq); final QName qsite = DocumentHelper.createQName("sitehref", NS_NSAUTH); final String sitehref = InvalidNamedObjectException.assertAttributeQName(core,elem,qsite); try { final QName qtime = DocumentHelper.createQName("validto", NS_NSAUTH); final Timestamp validto = TimeTools.parseTimeStamp(InvalidNamedObjectException.assertAttributeQName(core,elem,qtime)); return new AuthenticationTicket(core, requester, validto, sitehref); } catch (ParseException e) { throw new InvalidNamedObjectException(core.getName(),e.getLocalizedMessage()); } } } private final String requester; private final String siteurl; private final long validTo; public static final String TAG_NAME = "AuthenticationTicket"; public static final String URI_NSAUTH = "http://neuclear.org/neu/auth"; public static final Namespace NS_NSAUTH = DocumentHelper.createNamespace("auth", URI_NSAUTH); } --- NEW FILE: DemoAuthenticationServlet.java --- package org.neuclear.id.auth; import org.neuclear.commons.crypto.signers.Signer; import org.neuclear.commons.crypto.signers.TestCaseSigner; import org.neuclear.commons.NeuClearException; import javax.servlet.ServletConfig; import java.io.FileNotFoundException; import java.security.GeneralSecurityException; /** * Created by IntelliJ IDEA. * User: pelleb * Date: Dec 12, 2003 * Time: 9:17:38 PM * To change this template use Options | File Templates. */ public class DemoAuthenticationServlet extends AuthenticationServlet{ protected Signer createSigner(ServletConfig config) throws FileNotFoundException, GeneralSecurityException, NeuClearException { return new TestCaseSigner(); } } |
|
From: <pe...@us...> - 2004-03-02 19:11:08
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/java/org/neuclear/contracts Removed Files: Clause.java SuperClause.java TextClause.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- Clause.java DELETED --- --- SuperClause.java DELETED --- --- TextClause.java DELETED --- |
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/auth In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1482/src/java/org/neuclear/auth Removed Files: AuthenticationFilter.java AuthenticationServlet.java AuthenticationTicket.java DemoAuthenticationServlet.java Log Message: Further cleanups in neuclear-id. Moved everything under id. --- AuthenticationFilter.java DELETED --- --- AuthenticationServlet.java DELETED --- --- AuthenticationTicket.java DELETED --- --- DemoAuthenticationServlet.java DELETED --- |
|
From: <pe...@us...> - 2004-03-02 19:10:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/test-cactus/org/neuclear/commons/crypto/signers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1439/src/test-cactus/org/neuclear/commons/crypto/signers Modified Files: ServletSignerFactoryTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: ServletSignerFactoryTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/test-cactus/org/neuclear/commons/crypto/signers/ServletSignerFactoryTest.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ServletSignerFactoryTest.java 14 Dec 2003 20:52:55 -0000 1.1 --- ServletSignerFactoryTest.java 2 Mar 2004 18:58:44 -0000 1.2 *************** *** 28,32 **** public void testConfigDemo() throws ServletException, IOException, GeneralSecurityException, NeuClearException { config.setInitParameter("keystore","test"); ! config.setInitParameter("passphraseagent","servlet"); Signer signer=ServletSignerFactory.getInstance().createSigner(config); assertTrue(signer instanceof TestCaseSigner); --- 28,32 ---- public void testConfigDemo() throws ServletException, IOException, GeneralSecurityException, NeuClearException { config.setInitParameter("keystore","test"); ! config.setInitParameter("passphraseagent","signers"); Signer signer=ServletSignerFactory.getInstance().createSigner(config); assertTrue(signer instanceof TestCaseSigner); |
|
From: <pe...@us...> - 2004-03-02 19:10:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/servlets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1439/src/java/org/neuclear/commons/servlets Modified Files: ServletTools.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: ServletTools.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/servlets/ServletTools.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ServletTools.java 19 Feb 2004 15:29:10 -0000 1.7 --- ServletTools.java 2 Mar 2004 18:58:44 -0000 1.8 *************** *** 1,4 **** --- 1,7 ---- /* $Id$ * $Log$ + * Revision 1.8 2004/03/02 18:58:44 pelle + * Further cleanups in neuclear-id. Moved everything under id. + * * Revision 1.7 2004/02/19 15:29:10 pelle * Various cleanups and corrections *************** *** 22,26 **** * * Revision 1.3 2003/12/12 19:27:38 pelle ! * All the Cactus tests now for signing servlet. * Added working AuthenticationFilterTest * Returned original functionality to DemoSigningServlet. --- 25,29 ---- * * Revision 1.3 2003/12/12 19:27:38 pelle ! * All the Cactus tests now for signing signers. * Added working AuthenticationFilterTest * Returned original functionality to DemoSigningServlet. |
|
From: <pe...@us...> - 2004-03-02 19:10:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/passphraseagents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1439/src/java/org/neuclear/commons/crypto/passphraseagents Modified Files: ServletPassPhraseAgent.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: ServletPassPhraseAgent.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/passphraseagents/ServletPassPhraseAgent.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ServletPassPhraseAgent.java 19 Dec 2003 00:31:15 -0000 1.2 --- ServletPassPhraseAgent.java 2 Mar 2004 18:58:44 -0000 1.3 *************** *** 5,9 **** /** * PassPhraseAgent for use in server environments. ! * You set the passphrase first by passing it a servlet request. It fetches the passphrase from the paramater "passphrase"<p> * <b>WARNING</b> The sequence of events is very important for the safe usage of this. The following is an example within a * standard <tt>doPost()</tt> method. --- 5,9 ---- /** * PassPhraseAgent for use in server environments. ! * You set the passphrase first by passing it a signers request. It fetches the passphrase from the paramater "passphrase"<p> * <b>WARNING</b> The sequence of events is very important for the safe usage of this. The following is an example within a * standard <tt>doPost()</tt> method. |
|
From: <pe...@us...> - 2004-03-02 19:10:43
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1439/src/java/org/neuclear/commons/crypto/signers Modified Files: ServletSignerFactory.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: ServletSignerFactory.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/signers/ServletSignerFactory.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ServletSignerFactory.java 19 Jan 2004 17:53:14 -0000 1.6 --- ServletSignerFactory.java 2 Mar 2004 18:58:44 -0000 1.7 *************** *** 15,19 **** /** ! * Used to create Signers from servlet configuration parameters. It keeps a cache of Signers with similar parameters. Thus * if you have several Servlets with the same keystore parameters they will use the same instance of Signer<p> * The Configuration parameters are as follows: --- 15,19 ---- /** ! * Used to create Signers from signers configuration parameters. It keeps a cache of Signers with similar parameters. Thus * if you have several Servlets with the same keystore parameters they will use the same instance of Signer<p> * The Configuration parameters are as follows: *************** *** 23,29 **** * <tr><td>serviceid</td><td>The main service ID of the service. Ie. neu://superbux.com/ecurrency. This is only required (and used) * if you set <tt>keeppassphrase</tt> (see below)</td></tr> ! * <tr><td>passphraseagent</td><td>The type of passphraseagent to use. Valid options are <tt>servlet</tt>, * <tt>gui</tt>(default) and <tt>console</tt></td></tr> ! * <tr><td>keeppassphrase</td><td>This asks for the service passphrase once at startup and remembers it through the lifetime of the servlet</td></tr> * </table> * <p> --- 23,29 ---- * <tr><td>serviceid</td><td>The main service ID of the service. Ie. neu://superbux.com/ecurrency. This is only required (and used) * if you set <tt>keeppassphrase</tt> (see below)</td></tr> ! * <tr><td>passphraseagent</td><td>The type of passphraseagent to use. Valid options are <tt>signers</tt>, * <tt>gui</tt>(default) and <tt>console</tt></td></tr> ! * <tr><td>keeppassphrase</td><td>This asks for the service passphrase once at startup and remembers it through the lifetime of the signers</td></tr> * </table> * <p> *************** *** 77,81 **** if (agenttype.toLowerCase().equals("console")) return new ConsoleAgent(); ! if (agenttype.toLowerCase().equals("servlet")) return new ServletPassPhraseAgent(); if (agenttype.toLowerCase().equals("test")) --- 77,81 ---- if (agenttype.toLowerCase().equals("console")) return new ConsoleAgent(); ! if (agenttype.toLowerCase().equals("signers")) return new ServletPassPhraseAgent(); if (agenttype.toLowerCase().equals("test")) |
|
From: <pe...@us...> - 2004-03-02 19:10:37
|
Update of /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/receiver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1330/src/test/org/neuclear/asset/receiver Modified Files: PaymentReceiverTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: PaymentReceiverTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/receiver/PaymentReceiverTest.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** PaymentReceiverTest.java 13 Jan 2004 15:11:18 -0000 1.15 --- PaymentReceiverTest.java 2 Mar 2004 18:58:35 -0000 1.16 *************** *** 21,25 **** import org.neuclear.ledger.UnknownLedgerException; import org.neuclear.ledger.implementations.SQLLedger; ! import org.neuclear.receiver.Receiver; import org.neuclear.tests.AbstractSigningTest; import org.neuclear.xml.XMLException; --- 21,25 ---- import org.neuclear.ledger.UnknownLedgerException; import org.neuclear.ledger.implementations.SQLLedger; ! import org.neuclear.id.receiver.Receiver; import org.neuclear.tests.AbstractSigningTest; import org.neuclear.xml.XMLException; *************** *** 51,54 **** --- 51,57 ---- $Id$ $Log$ + Revision 1.16 2004/03/02 18:58:35 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.15 2004/01/13 15:11:18 pelle Now builds. |
|
From: <pe...@us...> - 2004-03-02 19:10:37
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1330/src/java/org/neuclear/asset Modified Files: AssetController.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: AssetController.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/AssetController.java,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** AssetController.java 13 Jan 2004 15:11:17 -0000 1.13 --- AssetController.java 2 Mar 2004 18:58:35 -0000 1.14 *************** *** 8,13 **** import org.neuclear.exchange.orders.*; import org.neuclear.id.SignedNamedObject; ! import org.neuclear.receiver.Receiver; ! import org.neuclear.receiver.UnsupportedTransaction; /* --- 8,13 ---- import org.neuclear.exchange.orders.*; import org.neuclear.id.SignedNamedObject; ! import org.neuclear.id.receiver.Receiver; ! import org.neuclear.id.receiver.UnsupportedTransaction; /* *************** *** 31,34 **** --- 31,37 ---- $Id$ $Log$ + Revision 1.14 2004/03/02 18:58:35 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.13 2004/01/13 15:11:17 pelle Now builds. |
|
From: <pe...@us...> - 2004-03-02 19:10:37
|
Update of /cvsroot/neuclear/neuclear-pay/src/test-cactus/org/neuclear/asset/receiver/servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1330/src/test-cactus/org/neuclear/asset/receiver/servlet Modified Files: AssetControllerServletTest.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: AssetControllerServletTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test-cactus/org/neuclear/asset/receiver/servlet/AssetControllerServletTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AssetControllerServletTest.java 13 Jan 2004 23:37:30 -0000 1.2 --- AssetControllerServletTest.java 2 Mar 2004 18:58:35 -0000 1.3 *************** *** 4,8 **** import org.apache.cactus.ServletTestCase; import org.apache.cactus.WebRequest; ! import org.neuclear.auth.AuthenticationServlet; import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; --- 4,8 ---- import org.apache.cactus.ServletTestCase; import org.apache.cactus.WebRequest; ! import org.neuclear.id.auth.AuthenticationServlet; import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; *************** *** 42,45 **** --- 42,48 ---- $Id$ $Log$ + Revision 1.3 2004/03/02 18:58:35 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.2 2004/01/13 23:37:30 pelle Refactoring parts of the core of XMLSignature. There shouldnt be any real API changes. |
|
From: <pe...@us...> - 2004-03-02 19:10:37
|
Update of /cvsroot/neuclear/neuclear-pay/src/webapp/WEB-INF In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1330/src/webapp/WEB-INF Modified Files: web.xml Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: web.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/webapp/WEB-INF/web.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** web.xml 13 Jan 2004 15:11:18 -0000 1.7 --- web.xml 2 Mar 2004 18:58:36 -0000 1.8 *************** *** 27,31 **** <filter> <filter-name>authfilter</filter-name> ! <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> </filter> <filter-mapping> --- 27,31 ---- <filter> <filter-name>authfilter</filter-name> ! <filter-class>org.neuclear.id.auth.AuthenticationFilter</filter-class> </filter> <filter-mapping> *************** *** 44,48 **** <servlet> <servlet-name>authenticator</servlet-name> ! <servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> --- 44,48 ---- <servlet> <servlet-name>authenticator</servlet-name> ! <servlet-class>org.neuclear.id.auth.AuthenticationServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> |
|
From: <pe...@us...> - 2004-03-02 19:10:35
|
Update of /cvsroot/neuclear/neuclear-pay/src/webapp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1330/src/webapp Modified Files: index.jsp Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: index.jsp =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/webapp/index.jsp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.jsp 15 Dec 2003 23:31:54 -0000 1.2 --- index.jsp 2 Mar 2004 18:58:36 -0000 1.3 *************** *** 1,5 **** <%@ page import="org.neuclear.commons.Utility, org.neuclear.id.SignedNamedObject, ! org.neuclear.auth.AuthenticationTicket, org.neuclear.id.NSTools, org.neuclear.commons.servlets.ServletTools , --- 1,5 ---- <%@ page import="org.neuclear.commons.Utility, org.neuclear.id.SignedNamedObject, ! org.neuclear.id.auth.AuthenticationTicket, org.neuclear.id.NSTools, org.neuclear.commons.servlets.ServletTools , |
|
From: <pe...@us...> - 2004-03-02 19:10:34
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1330/src/java/org/neuclear/asset/servlet Modified Files: AssetControllerServlet.java TransferRequestServlet.java Log Message: Further cleanups in neuclear-id. Moved everything under id. Index: AssetControllerServlet.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/servlet/AssetControllerServlet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AssetControllerServlet.java 13 Jan 2004 15:11:17 -0000 1.1 --- AssetControllerServlet.java 2 Mar 2004 18:58:34 -0000 1.2 *************** *** 11,15 **** import org.neuclear.id.resolver.NSResolver; import org.neuclear.ledger.implementations.SQLLedger; ! import org.neuclear.receiver.ReceiverServlet; import javax.servlet.ServletConfig; --- 11,15 ---- import org.neuclear.id.resolver.NSResolver; import org.neuclear.ledger.implementations.SQLLedger; ! import org.neuclear.id.receiver.ReceiverServlet; import javax.servlet.ServletConfig; *************** *** 36,39 **** --- 36,42 ---- $Id$ $Log$ + Revision 1.2 2004/03/02 18:58:34 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.1 2004/01/13 15:11:17 pelle Now builds. Index: TransferRequestServlet.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/servlet/TransferRequestServlet.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TransferRequestServlet.java 13 Jan 2004 15:11:17 -0000 1.1 --- TransferRequestServlet.java 2 Mar 2004 18:58:35 -0000 1.2 *************** *** 12,16 **** import org.neuclear.id.builders.Builder; import org.neuclear.id.resolver.NSResolver; ! import org.neuclear.signers.servlet.SignatureRequestServlet; import javax.servlet.http.HttpServletRequest; --- 12,16 ---- import org.neuclear.id.builders.Builder; import org.neuclear.id.resolver.NSResolver; ! import org.neuclear.id.signers.SignatureRequestServlet; import javax.servlet.http.HttpServletRequest; *************** *** 36,39 **** --- 36,42 ---- $Id$ $Log$ + Revision 1.2 2004/03/02 18:58:35 pelle + Further cleanups in neuclear-id. Moved everything under id. + Revision 1.1 2004/01/13 15:11:17 pelle Now builds. |
|
From: <pe...@us...> - 2004-03-02 19:05:25
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/signers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv335/src/java/org/neuclear/id/signers Log Message: Directory /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/signers added to the repository |
|
From: <pe...@us...> - 2004-03-02 19:05:13
|
Update of /cvsroot/neuclear/neuclear-id/src/test-cactus/org/neuclear/id/signers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32729/src/test-cactus/org/neuclear/id/signers Log Message: Directory /cvsroot/neuclear/neuclear-id/src/test-cactus/org/neuclear/id/signers added to the repository |