|
From: <pe...@us...> - 2003-12-16 15:05:02
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/builders
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/java/org/neuclear/id/builders
Modified Files:
IdentityBuilder.java
Added Files:
SignedMessageBuilder.java
Log Message:
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
--- NEW FILE: SignedMessageBuilder.java ---
package org.neuclear.id.builders;
import org.dom4j.Namespace;
import org.neuclear.commons.NeuClearException;
import org.neuclear.id.NSTools;
import org.neuclear.id.SignedMessage;
import org.neuclear.id.Identity;
/**
* Created by IntelliJ IDEA.
* User: pelleb
* Date: Dec 15, 2003
* Time: 11:54:36 PM
* To change this template use Options | File Templates.
*/
public class SignedMessageBuilder extends NamedObjectBuilder{
public SignedMessageBuilder(Identity signer, String recipient, String subject, String message) throws NeuClearException {
super(NSTools.createUniqueTransactionID(signer.getName(), recipient), SignedMessage.TAG_NAME);
createAttribute("recipient",recipient);
addElement("subject").setText(subject);
addElement("message").setText(message);
}
}
Index: IdentityBuilder.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/builders/IdentityBuilder.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** IdentityBuilder.java 11 Dec 2003 23:57:29 -0000 1.13
--- IdentityBuilder.java 16 Dec 2003 15:04:59 -0000 1.14
***************
*** 2,5 ****
--- 2,14 ----
* $Id$
* $Log$
+ * Revision 1.14 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.13 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.
***************
*** 234,238 ****
// We have meaningful defaults for the following two
createNEUIDAttribute("repository", repository);
! createNEUIDAttribute("logger", receiver);
if (!Utility.isEmpty(signer))
createNEUIDAttribute("signer", signer);
--- 243,247 ----
// We have meaningful defaults for the following two
createNEUIDAttribute("repository", repository);
! createNEUIDAttribute("logger", logger);
if (!Utility.isEmpty(signer))
createNEUIDAttribute("signer", signer);
|