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...> - 2003-12-16 17:54:31
|
Update of /cvsroot/neuclear/neuclear-id-sample/src/java/org In directory sc8-pr-cvs1:/tmp/cvs-serv13509/org Log Message: Directory /cvsroot/neuclear/neuclear-id-sample/src/java/org added to the repository |
|
From: <pe...@us...> - 2003-12-16 17:52:45
|
Update of /cvsroot/neuclear/neuclear-id-sample/src/java In directory sc8-pr-cvs1:/tmp/cvs-serv13249/java Log Message: Directory /cvsroot/neuclear/neuclear-id-sample/src/java added to the repository |
|
From: <pe...@us...> - 2003-12-16 15:39:10
|
Update of /cvsroot/neuclear/neuclear-id
In directory sc8-pr-cvs1:/tmp/cvs-serv17220
Modified Files:
project.xml
Log Message:
Changes to project.xml in various projects
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/project.xml,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** project.xml 14 Dec 2003 20:53:04 -0000 1.23
--- project.xml 16 Dec 2003 15:39:07 -0000 1.24
***************
*** 156,162 ****
<unitTestSourceDirectory>src/test</unitTestSourceDirectory>
- <integrationUnitTestSourceDirectory/>
-
- <aspectSourceDirectory/>
<!-- Unit test cases -->
--- 156,159 ----
|
|
From: <pe...@us...> - 2003-12-16 15:39:04
|
Update of /cvsroot/neuclear/neuclear-signer
In directory sc8-pr-cvs1:/tmp/cvs-serv17162
Modified Files:
project.xml
Log Message:
Changes to project.xml in various projects
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-signer/project.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** project.xml 15 Dec 2003 14:38:18 -0000 1.2
--- project.xml 16 Dec 2003 15:39:01 -0000 1.3
***************
*** 27,31 ****
</repository>
! <siteAddress>neuclear.org/signer/</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/signer/</siteDirectory>
<issueTrackingUrl>http://jira.neuclear.org:9090/</issueTrackingUrl>
--- 27,31 ----
</repository>
! <siteAddress>neuclear.org</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/signer/</siteDirectory>
<issueTrackingUrl>http://jira.neuclear.org:9090/</issueTrackingUrl>
***************
*** 122,126 ****
--- 122,141 ----
</dependencies>
<build>
+ <!-- <sourceDirectories>-->
<sourceDirectory>src/java</sourceDirectory>
+ <!-- </sourceDirectories>-->
+
+ <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
+
+ <!-- Unit test cases -->
+ <unitTest>
+ <includes>
+ <!--<include>**/*Test.java</include>-->
+ </includes>
+ <excludes>
+ <exclude>**/Abstract*Test.java</exclude>
+ </excludes>
+ </unitTest>
+
</build>
</project>
|
|
From: <pe...@us...> - 2003-12-16 15:38:59
|
Update of /cvsroot/neuclear/neuclear-id-sample
In directory sc8-pr-cvs1:/tmp/cvs-serv17131
Modified Files:
project.xml
Log Message:
Changes to project.xml in various projects
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id-sample/project.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** project.xml 16 Dec 2003 15:04:31 -0000 1.3
--- project.xml 16 Dec 2003 15:38:56 -0000 1.4
***************
*** 27,31 ****
</repository>
! <siteAddress>neuclear.org/id/</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/id/sample/</siteDirectory>
<issueTrackingUrl>http://jira.neuclear.org:9090/</issueTrackingUrl>
--- 27,31 ----
</repository>
! <siteAddress>neuclear.org</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/id/sample/</siteDirectory>
<issueTrackingUrl>http://jira.neuclear.org:9090/</issueTrackingUrl>
***************
*** 124,128 ****
--- 124,142 ----
</dependencies>
<build>
+ <!-- <sourceDirectories>-->
<sourceDirectory>src/java</sourceDirectory>
+ <!-- </sourceDirectories>-->
+
+ <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
+
+ <!-- Unit test cases -->
+ <unitTest>
+ <includes>
+ <!--<include>**/*Test.java</include>-->
+ </includes>
+ <excludes>
+ <exclude>**/Abstract*Test.java</exclude>
+ </excludes>
+ </unitTest>
</build>
</project>
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/java/org/neuclear/senders
Modified Files:
Sender.java SmtpSender.java
Added Files:
NeuSender.java UnsupportedEndpointException.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: NeuSender.java ---
package org.neuclear.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: UnsupportedEndpointException.java ---
package org.neuclear.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;
}
Index: Sender.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders/Sender.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Sender.java 10 Dec 2003 23:58:52 -0000 1.13
--- Sender.java 16 Dec 2003 15:05:00 -0000 1.14
***************
*** 8,11 ****
--- 8,20 ----
* $Id$
* $Log$
+ * 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
***************
*** 83,93 ****
public abstract class Sender {
! public abstract SignedNamedObject send(String endpoint, SignedNamedObject obj) throws NeuClearException, XMLException;
public static SignedNamedObject quickSend(final String endpoint, final SignedNamedObject obj) throws NeuClearException {
! final int protloc = endpoint.indexOf(":");
! if (protloc < 0)
! throw new NeuClearException(endpoint + "Is not in URL format");
! final String protocol = endpoint.substring(0, protloc);
final Sender sender = getSender(protocol);
if (sender == null)
--- 92,99 ----
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)
***************
*** 100,103 ****
--- 106,119 ----
}
+ 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) {
if (SENDERS == null) {
***************
*** 106,109 ****
--- 122,126 ----
SENDERS.put("http", new SoapSender());
SENDERS.put("mailto", new SmtpSender());
+ SENDERS.put("neu", new NeuSender());
}
Index: SmtpSender.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders/SmtpSender.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** SmtpSender.java 10 Dec 2003 23:58:52 -0000 1.15
--- SmtpSender.java 16 Dec 2003 15:05:00 -0000 1.16
***************
*** 8,11 ****
--- 8,20 ----
* $Id$
* $Log$
+ * 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
***************
*** 115,118 ****
--- 124,128 ----
import org.neuclear.commons.Utility;
import org.neuclear.id.SignedNamedObject;
+ import org.neuclear.id.Identity;
import javax.mail.*;
***************
*** 123,129 ****
import java.util.Date;
import java.util.Properties;
public final class SmtpSender extends Sender {
! public final SignedNamedObject send(String endpoint, final SignedNamedObject obj) throws NeuClearException {
final Properties props = System.getProperties();
if (endpoint.startsWith("mailto:"))
--- 133,141 ----
import java.util.Date;
import java.util.Properties;
+ import java.util.regex.Pattern;
+ import java.util.regex.Matcher;
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:"))
***************
*** 139,143 ****
// -- Set the FROM and TO fields --
! msg.setFrom(new InternetAddress("pe...@ne..."));// TODO Remove this hardcoded email
msg.setRecipients(Message.RecipientType.TO,
InternetAddress.parse(endpoint, false));
--- 151,155 ----
// -- 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));
***************
*** 173,175 ****
--- 185,197 ----
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-.]+)");
+
}
|
|
From: <pe...@us...> - 2003-12-16 15:05:04
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/java/org/neuclear/tests
Added Files:
AbstractObjectCreationTest.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: AbstractObjectCreationTest.java ---
package org.neuclear.tests;
import org.neuclear.commons.NeuClearException;
import org.neuclear.xml.XMLException;
import org.neuclear.id.builders.NamedObjectBuilder;
import org.neuclear.id.builders.SignedMessageBuilder;
import org.neuclear.id.NSTools;
import org.neuclear.id.SignedNamedObject;
import java.security.GeneralSecurityException;
/**
* Created by IntelliJ IDEA.
* User: pelleb
* Date: Dec 16, 2003
* Time: 9:28:16 AM
* To change this template use Options | File Templates.
*/
public abstract class AbstractObjectCreationTest extends AbstractSigningTest {
public AbstractObjectCreationTest(final String string) throws NeuClearException, GeneralSecurityException {
super(string);
}
public void testCreateObject() throws NeuClearException, XMLException {
NamedObjectBuilder builder=createBuilder();
assertNotNull(builder);
assertTrue(NSTools.isNamedObject(builder.getElement()));
SignedNamedObject obj=builder.sign(getSigner());
assertNotNull(obj);
verifyObject(obj);
}
protected abstract void verifyObject(SignedNamedObject obj);
protected abstract NamedObjectBuilder createBuilder() throws NeuClearException;
}
|
|
From: <pe...@us...> - 2003-12-16 15:05:04
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/auth
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/java/org/neuclear/auth
Modified Files:
AuthenticationServlet.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
Index: AuthenticationServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/auth/AuthenticationServlet.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** AuthenticationServlet.java 15 Dec 2003 23:33:04 -0000 1.10
--- AuthenticationServlet.java 16 Dec 2003 15:04:59 -0000 1.11
***************
*** 45,48 ****
--- 45,57 ----
$Id$
$Log$
+ 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.
***************
*** 160,164 ****
out.print(NSResolver.resolveIdentity(userns).getSigner());
out.write("\" method=\"POST\">\n ");
! out.write("<input name=\"base64xml\" value=\"");
out.print(XMLSecTools.encodeElementBase64(sigreq));
out.write("\" type=\"hidden\">\n ");
--- 169,173 ----
out.print(NSResolver.resolveIdentity(userns).getSigner());
out.write("\" method=\"POST\">\n ");
! out.write("<input name=\"neuclear-request\" value=\"");
out.print(XMLSecTools.encodeElementBase64(sigreq));
out.write("\" type=\"hidden\">\n ");
|
|
From: <pe...@us...> - 2003-12-16 15:05:03
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/test/org/neuclear/id
Added Files:
IdentityCreationTest.java SignedMessageTest.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: IdentityCreationTest.java ---
package org.neuclear.id;
import org.neuclear.tests.AbstractObjectCreationTest;
import org.neuclear.id.builders.SignedMessageBuilder;
import org.neuclear.id.builders.IdentityBuilder;
import org.neuclear.id.builders.NamedObjectBuilder;
import org.neuclear.commons.NeuClearException;
import java.security.GeneralSecurityException;
/**
* Created by IntelliJ IDEA.
* User: pelleb
* Date: Dec 16, 2003
* Time: 9:29:02 AM
* To change this template use Options | File Templates.
*/
public class IdentityCreationTest extends AbstractObjectCreationTest {
private static final String NAME = "neu://alice@test";
private static final String REPOSITORY = "http://repository.neuclear.org";
private static final String SIGNER = "http://users.neuclear.org:8080/DemoSigner";
private static final String LOGGER = "http://logger.neuclear.org";
private static final String RECEIVER = "mailto:pe...@ne...";
public IdentityCreationTest(String string) throws NeuClearException, GeneralSecurityException {
super(string);
}
protected void verifyObject(SignedNamedObject obj) {
assertTrue(obj instanceof Identity);
Identity id=(Identity) obj;
assertEquals(id.getLogger(),LOGGER);
assertEquals(id.getName(),NAME);
assertEquals(id.getRepository(),REPOSITORY);
assertEquals(id.getSigner(),SIGNER);
assertEquals(id.getReceiver(),RECEIVER);
assertNotNull(id.getPublicKey());
}
protected NamedObjectBuilder createBuilder() throws NeuClearException {
return new IdentityBuilder(NAME,getSigner().getPublicKey(NAME),REPOSITORY,SIGNER,LOGGER,RECEIVER);
}
}
--- NEW FILE: SignedMessageTest.java ---
package org.neuclear.id;
import org.neuclear.tests.AbstractSigningTest;
import org.neuclear.tests.AbstractObjectCreationTest;
import org.neuclear.commons.NeuClearException;
import org.neuclear.id.builders.SignedMessageBuilder;
import org.neuclear.id.builders.NamedObjectBuilder;
import org.neuclear.xml.XMLException;
import java.security.GeneralSecurityException;
/**
* Created by IntelliJ IDEA.
* User: pelleb
* Date: Dec 16, 2003
* Time: 9:19:51 AM
* To change this template use Options | File Templates.
*/
public class SignedMessageTest extends AbstractObjectCreationTest {
public SignedMessageTest(String string) throws NeuClearException, GeneralSecurityException {
super(string);
}
protected void verifyObject(SignedNamedObject obj) {
assertTrue(obj instanceof SignedMessage);
SignedMessage msg=(SignedMessage)obj;
assertNotNull(msg.getRecipient());
assertNotNull(msg.getSubject());
assertNotNull(msg.getMessage());
}
protected NamedObjectBuilder createBuilder() throws NeuClearException {
return new SignedMessageBuilder(getBob(),"neu://alice@test","Test","Hello there");
}
}
|
|
From: <pe...@us...> - 2003-12-16 15:05:03
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/java/org/neuclear/id
Modified Files:
Identity.java
Added Files:
SignedMessage.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: SignedMessage.java ---
package org.neuclear.id;
import org.neuclear.commons.NeuClearException;
import org.neuclear.commons.time.TimeTools;
import org.neuclear.xml.xmlsec.XMLSecurityException;
import org.neuclear.auth.AuthenticationTicket;
import org.dom4j.Element;
import org.dom4j.DocumentHelper;
import java.sql.Timestamp;
/**
* Created by IntelliJ IDEA.
* User: pelleb
* Date: Dec 15, 2003
* Time: 11:48:34 PM
* To change this template use Options | File Templates.
*/
public class SignedMessage extends SignedNamedObject{
private SignedMessage(SignedNamedCore core, String recipient,String subject, String message) throws NeuClearException {
super(core);
this.recipient=recipient;
this.subject=subject;
this.message=message;
}
public String getRecipient() {
return recipient;
}
public String getSubject() {
return subject;
}
public String getMessage() {
return message;
}
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 NeuClearException, XMLSecurityException {
final String to=elem.attributeValue("recipient");
final String subject=elem.element("subject").getText();
final String message=elem.element("message").getText();
return new SignedMessage(core, to,subject,message);
}
}
private final String recipient;
private final String subject;
private final String message;
public static final String TAG_NAME="SignedMessage";
}
Index: Identity.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/Identity.java,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** Identity.java 10 Dec 2003 23:58:51 -0000 1.23
--- Identity.java 16 Dec 2003 15:05:00 -0000 1.24
***************
*** 2,5 ****
--- 2,14 ----
* $Id$
* $Log$
+ * Revision 1.24 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.23 2003/12/10 23:58:51 pelle
* Did some cleaning up in the builders
***************
*** 341,344 ****
--- 350,357 ----
public final String getLogger() {
return logger;
+ }
+
+ public final String getReceiver() {
+ return receiver;
}
|
|
From: <pe...@us...> - 2003-12-16 15:05:03
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/java/org/neuclear/receiver
Added Files:
SimpleReceipt.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: SimpleReceipt.java ---
package org.neuclear.receiver;
import org.neuclear.xml.AbstractElementProxy;
import org.neuclear.id.builders.NamedObjectBuilder;
import org.neuclear.id.SignedNamedObject;
import org.neuclear.id.NSTools;
import org.dom4j.Namespace;
/**
* A receipt for returning simple status from a Receiver.
*/
public class SimpleReceipt extends AbstractElementProxy{
public SimpleReceipt(String message) {
super("Receipt", NSTools.NS_NEUID);
getElement().setText(message);
}
}
|
|
From: <pe...@us...> - 2003-12-16 15:05:03
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/verifier
In directory sc8-pr-cvs1:/tmp/cvs-serv10766/src/java/org/neuclear/id/verifier
Modified Files:
VerifyingReader.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
Index: VerifyingReader.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/verifier/VerifyingReader.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** VerifyingReader.java 10 Dec 2003 23:58:51 -0000 1.15
--- VerifyingReader.java 16 Dec 2003 15:05:00 -0000 1.16
***************
*** 32,35 ****
--- 32,44 ----
$Id$
$Log$
+ 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:51 pelle
Did some cleaning up in the builders
***************
*** 134,137 ****
--- 143,147 ----
readers.put(AuthenticationTicket.TAG_NAME, new AuthenticationTicket.Reader());
readers.put(SignatureRequest.SIGREQUEST_TAG, new SignatureRequest.Reader());
+ readers.put(SignedMessage.TAG_NAME, new SignedMessage.Reader());
defaultReader = new SignedNamedObject.Reader();
}
|
|
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);
|
|
From: <pe...@us...> - 2003-12-16 15:04:51
|
Update of /cvsroot/neuclear/neuclear-xmlsig/src/java/org/neuclear/xml In directory sc8-pr-cvs1:/tmp/cvs-serv10746/src/java/org/neuclear/xml Modified Files: AbstractElementProxy.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 Index: AbstractElementProxy.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-xmlsig/src/java/org/neuclear/xml/AbstractElementProxy.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AbstractElementProxy.java 11 Dec 2003 23:56:53 -0000 1.7 --- AbstractElementProxy.java 16 Dec 2003 15:04:49 -0000 1.8 *************** *** 2,5 **** --- 2,14 ---- * $Id$ * $Log$ + * Revision 1.8 2003/12/16 15:04:49 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.7 2003/12/11 23:56:53 pelle * Trying to test the ReceiverServlet with cactus. Still no luck. Need to return a ElementProxy of some sort. |
|
From: <pe...@us...> - 2003-12-16 15:04:46
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/servlets In directory sc8-pr-cvs1:/tmp/cvs-serv10718/src/java/org/neuclear/commons/servlets Modified Files: ServletTools.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 Index: ServletTools.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/servlets/ServletTools.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ServletTools.java 15 Dec 2003 23:32:40 -0000 1.4 --- ServletTools.java 16 Dec 2003 15:04:43 -0000 1.5 *************** *** 1,4 **** --- 1,13 ---- /* $Id$ * $Log$ + * Revision 1.5 2003/12/16 15:04:43 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.4 2003/12/15 23:32:40 pelle * added ServletTools.getInitParam() which first tries the ServletConfig, then the context config. |
|
From: <pe...@us...> - 2003-12-16 15:04:41
|
Update of /cvsroot/neuclear/neuclear-signer
In directory sc8-pr-cvs1:/tmp/cvs-serv10666
Added Files:
LICENSE.txt
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: LICENSE.txt ---
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
|
|
From: <pe...@us...> - 2003-12-16 15:04:34
|
Update of /cvsroot/neuclear/neuclear-id-sample
In directory sc8-pr-cvs1:/tmp/cvs-serv10622
Modified Files:
project.xml
Added Files:
LICENSE.txt
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: LICENSE.txt ---
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the Lesser GPL. It also counts
as the successor of the GNU Library Public License, version 2, hence
the version number 2.1.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Lesser General Public License, applies to some
specially designated software packages--typically libraries--of the
Free Software Foundation and other authors who decide to use it. You
can use it too, but we suggest you first think carefully about whether
this license or the ordinary General Public License is the better
strategy to use in any particular case, based on the explanations below.
When we speak of free software, we are referring to freedom of use,
not price. Our General Public Licenses are designed to make sure that
you have the freedom to distribute copies of free software (and charge
for this service if you wish); that you receive source code or can get
it if you want it; that you can change the software and use pieces of
it in new free programs; and that you are informed that you can do
these things.
To protect your rights, we need to make restrictions that forbid
distributors to deny you these rights or to ask you to surrender these
rights. These restrictions translate to certain responsibilities for
you if you distribute copies of the library or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link other code with the library, you must provide
complete object files to the recipients, so that they can relink them
with the library after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
We protect your rights with a two-step method: (1) we copyright the
library, and (2) we offer you this license, which gives you legal
permission to copy, distribute and/or modify the library.
To protect each distributor, we want to make it very clear that
there is no warranty for the free library. Also, if the library is
modified by someone else and passed on, the recipients should know
that what they have is not the original version, so that the original
author's reputation will not be affected by problems that might be
introduced by others.
Finally, software patents pose a constant threat to the existence of
any free program. We wish to make sure that a company cannot
effectively restrict the users of a free program by obtaining a
restrictive license from a patent holder. Therefore, we insist that
any patent license obtained for a version of the library must be
consistent with the full freedom of use specified in this license.
Most GNU software, including some libraries, is covered by the
ordinary GNU General Public License. This license, the GNU Lesser
General Public License, applies to certain designated libraries, and
is quite different from the ordinary General Public License. We use
this license for certain libraries in order to permit linking those
libraries into non-free programs.
When a program is linked with a library, whether statically or using
a shared library, the combination of the two is legally speaking a
combined work, a derivative of the original library. The ordinary
General Public License therefore permits such linking only if the
entire combination fits its criteria of freedom. The Lesser General
Public License permits more lax criteria for linking other code with
the library.
We call this license the "Lesser" General Public License because it
does Less to protect the user's freedom than the ordinary General
Public License. It also provides other free software developers Less
of an advantage over competing non-free programs. These disadvantages
are the reason we use the ordinary General Public License for many
libraries. However, the Lesser license provides advantages in certain
special circumstances.
For example, on rare occasions, there may be a special need to
encourage the widest possible use of a certain library, so that it becomes
a de-facto standard. To achieve this, non-free programs must be
allowed to use the library. A more frequent case is that a free
library does the same job as widely used non-free libraries. In this
case, there is little to gain by limiting the free library to free
software only, so we use the Lesser General Public License.
In other cases, permission to use a particular library in non-free
programs enables a greater number of people to use a large body of
free software. For example, permission to use the GNU C Library in
non-free programs enables many more people to use the whole GNU
operating system, as well as its variant, the GNU/Linux operating
system.
Although the Lesser General Public License is Less protective of the
users' freedom, it does ensure that the user of a program that is
linked with the Library has the freedom and the wherewithal to run
that program using a modified version of the Library.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library or other
program which contains a notice placed by the copyright holder or
other authorized party saying it may be distributed under the terms of
this Lesser General Public License (also called "this License").
Each licensee is addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (1) uses at run time a
copy of the library already present on the user's computer system,
rather than copying library functions into the executable, and (2)
will operate properly with a modified version of the library, if
the user installs one, as long as the modified version is
interface-compatible with the version that the work was made with.
c) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
d) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
e) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the materials to be distributed need not include anything that is
normally distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Lesser General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id-sample/project.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** project.xml 15 Dec 2003 14:44:57 -0000 1.2
--- project.xml 16 Dec 2003 15:04:31 -0000 1.3
***************
*** 17,21 ****
</description>
! <url>http://neuclear.org/id/sample</url>
<repository>
<connection>
--- 17,21 ----
</description>
! <url>http://neuclear.org/id/sample/</url>
<repository>
<connection>
|
|
From: <pe...@us...> - 2003-12-16 15:04:34
|
Update of /cvsroot/neuclear/neuclear-id-sample/xdocs
In directory sc8-pr-cvs1:/tmp/cvs-serv10622/xdocs
Added Files:
bdg.xml index.xml installation.xml
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: bdg.xml ---
<?xml version="1.0"?>
<document>
<properties>
<title>The Busy Developer's Guide to the NeuClear ID API</title>
<author email="pe...@ne...">Pelle Braendgaard</author>
</properties>
<body>
<section name="The Busy Developer's Guide to the NeuClear ID Sample Web App">
<h4>Scope</h4>
<p>
This document describes in Example form the usage of the NeuClear ID API. The Document is not intended as
an implementation document or a strict API definition. The current final API Specifications can be found in the
<a href="../apidocs/index.html">Project Java Docs</a>.
</p>
<h4>Audience</h4>
<p>
The audience for this developers guide are expected to be relatively familiar with Java. The instructions are
currently listed for unix type machines, but it should work on any machine running jdk1.4 including Windows.
</p>
<h4>Purpose</h4>
<p>
The main purpose of the NeuClear ID API is to provide a simple framework and API for building applications
using a Public Key Infrastructure (PKI).
</p>
</section>
<section name="Creating an Top Level Identity for your Domain Name">
<p>
All messages (
<a href="apidocs/org/neuclear/id/SignedNamedObject.html">SignedNamedObjects</a> in NeuClear lingo)
in NeuClear ID must be signed by an
<a href="apidocs/org/neuclear/id/Identity.html">Identity</a>. So to get started we
must first create a new Identity.
</p>
<p>
Each domain name must create a top level identity, which main job in life is to sign sub identities. So that is where we start.
</p>
<p>
The easiest way to get started is to use the neuclear-id-app.jar from a command line.
We need to have the following ready:
</p>
<ul>
<li>The Name</li>
<li>A default receiver</li>
<li>A RSA Key Pair</li>
</ul>
<h4>Pick an Identity Name</h4>
<p>
As we first need to create a top level Identity for your domain we will use the name neu://yourdomain.com as the
Identity name. For now to keep things simple lets use your email address as the default receiver.
</p>
<h4>Creating the Key Pair</h4>
<p>
Now we know the name of our new identity we first need to create our keypair. Sun provides us with a very badly designed
tool called
<a href="http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html">keytool</a> which we can use to
create and store our keypair. The NeuClear toolset will provide its own keygeneration tools soon, but for now we've got to do it like this:
</p>
<source>$ keytool -genkey -keyalg RSA -alias
<b>neu://yourdomain.com</b>
Enter keystore password: #####
What is your first and last name?
[Unknown]:
<b>neu://yourdomain.com</b>
What is the name of your organizational unit?
[Unknown]: Your Domain
What is the name of your organization?
[Unknown]: Your Domain
What is the name of your City or Locality?
[Unknown]: Panama City
What is the name of your State or Province?
[Unknown]: Panama
What is the two-letter country code for this unit?
[Unknown]: PA
Is CN=neu://yourdomain.com, OU=Your Domain, O=Your Domain, L=Panama City, ST=Panama, C=PA correct?
[no]: yes
Enter key password for neu://yourdomain.com
(RETURN if same as keystore password):
</source>
<p>
What you can see there is the invocation of keytool with the
<tt>-genkey</tt> option.
We pick a RSA key, which is recommended over the default DSA key. The alias must be the same as the ID that you are creating.
The details about first and last name location etc, are pretty much irrelevant for our purposes, but by convension we like to
put the ID (eg.
<tt>neu://yourdomain.com</tt>) in the first and last name field. What might not be immediately obvious here
is that keytool creates a default keystore in your home directory at
<tt>~/.keystore</tt> this contains your keys and the
neuclear tools use this keystore later on.
</p>
<h4>Create the Selfsigned Certificate</h4>
<p>
Download the
<a href="http://neuclear.org/maven/neuclear-id/jars/neuclear-id-app-0.8.jar">NeuClear ID Executable</a>.
Excuse the long and ugly name, we will package it nicer later on. Currently this tool allows you to create a certificate and
sign it. Lets run it with our ID and receiver we decided on earlier.
</p>
<source>$ java -jar neuclear-id-app-0.8.jar --name neu://yourdomain.com --receiver mailto:ad...@yo...
Please enter passphrase for: KeyStore Passphrase for~/.keystore
:
Signing by neu://yourdomain.com ...
Please enter passphrase for: neu://yourdomain.com
:
Outputting to: _NEUID/yourdomain.com/root.id</source>
<p>
The program asks you for the passphrases for both the keystore and your key. Enter them exactly like you did
before.
</p>
<h4>Copy certificate to Web Server</h4>
<p>
The Certificate must now be moved to your web server. It has to live in the following file:
<tt>http://yourdomain.com/_NEUID/yourdomain.com/root.id</tt>
<br/>
The simplest way to do this in unix is to use
<tt>scp</tt>:
</p>
<source>scp -r _NEUID/
<b>us...@yo...:/home/httpd/htdocs/</b>
</source>
<p>
where
<tt>user</tt> is your username on the webserver.
<tt>yourdomain.com</tt> is webserver domain name and
<tt>/home/httpd/htdocs/</tt> the full absolute path to the root of your web server.
</p>
</section>
<section name="Test your Identity">
<p>
To verify an Identity type the following in your command prompt:
</p>
<source>$ java -jar neuclear-id-app-0.8.jar --verify neu://pelle@neuclear.org
Resolving and Verifying: neu://pelle@neuclear.org
Signed Object: neu://pelle@neuclear.org is verified
was signed at: 2003-12-09T10:00:42,466EST
Is of type: org.neuclear.id.Identity
repository: http://neuclear.org/_NEUID
signer: http://localhost:11870/Signer</source>
<p>
Try it with your new identity that you created above.
</p>
</section>
<section name="Creating a Sub Identity">
<p>
We dont recommend using top level identities for anything but signing sub identities. So for us to actually get started on some
real fun we need to create a new sub identity. This is pretty much a repitition of the above, so I will just highlight the differences
here.
</p>
<h4>Chosing the name</h4>
<p>
By convention there are two ways you can name a sub identity. For individuals or roles use the familiar email naming
convention. Such as:
</p>
<ul>
<li>
<tt>neu://bob@yourdomain.com</tt>
</li>
<li>
<tt>neu://sales@yourdomain.com</tt>
</li>
</ul>
<p>
If you want your sub identity to be a process or service. Such as an ecommerce site, an asset transfer system or an exchange system use
this format:
</p>
<ul>
<li>
<tt>neu://yourdomain.com/store</tt>
</li>
<li>
<tt>neu://yourdomain.com/homebanking</tt>
</li>
</ul>
<p>
The two formats are functionally equivalent, but are separated stylistically to make it easier to understand for
end users.
</p>
<p>
So for our example we picked
<tt>neu://bob@yourdomain.com</tt>
</p>
<h4>Creating the Key Pair</h4>
<p>
Create a new keypair just like you did before:
</p>
<source>$ keytool -genkey -keyalg RSA -alias
<b>neu://bob@yourdomain.com</b>
Enter keystore password: #####
What is your first and last name?
[Unknown]:
<b>neu://bob@yourdomain.com</b>
What is the name of your organizational unit?
[Unknown]: Your Domain
What is the name of your organization?
[Unknown]: Your Domain
What is the name of your City or Locality?
[Unknown]: Panama City
What is the name of your State or Province?
[Unknown]: Panama
What is the two-letter country code for this unit?
[Unknown]: PA
Is CN=neu://bob@yourdomain.com, OU=Your Domain, O=Your Domain, L=Panama City, ST=Panama, C=PA correct?
[no]: yes
Enter key password for neu://bob@yourdomain.com
(RETURN if same as keystore password):
</source>
<h4>Create the Signed Certificate</h4>
<p>
Again we need to create a certificate. This time however it is not self signed, but signed
by the top level identity we created above. As long as we create the two identities on the same
machine. The process is completely identical from a users stand point, with the notable exception
that we are asked for the root identity's passphrase and not the one of the sub identity.
</p>
<source>$ java -jar neuclear-id-app-0.8.jar --name neu://bob@yourdomain.com --receiver mailto:bo...@yo...
Please enter passphrase for: KeyStore Passphrase for~/.keystore
:
Signing by neu://yourdomain.com ...
Please enter passphrase for: neu://yourdomain.com
:
Outputting to: _NEUID/yourdomain.com/@bob/root.id</source>
<p>
Now all that remains is to copy it to your web server exactly like you did above and your new sub identity is
ready and live.
</p>
</section>
<section name="Signing and verifying messages">
<p>
Coming soon.
</p>
</section>
</body>
</document>
--- NEW FILE: index.xml ---
<?xml version="1.0"?>
<document>
<properties>
<title>NeuClear - ID</title>
<author email="pe...@ne...">Pelle Braendgaard</author>
</properties>
<body>
<section name="Introduction">
<p>
This is a sample web application for demonstrating how simple it is to write applications that utilize
<a href="http://neuclear.org/id/">NeuClear ID</a>. The main functionality allows users to log in to the
application using their NeuClear ID and then send signed messages to other people.
</p>
</section>
<section name="Busy Developer Guide">
<p>
To get started view the <a href="bdg.html">busy developers guide</a>. Aimed to get developers started
with their own site quickly and easily.
</p>
</section>
</body>
</document>
--- NEW FILE: installation.xml ---
<?xml version="1.0"?>
<document>
<properties>
<title>Installing</title>
<author email="pe...@ne...">Pelle Braendgaard</author>
</properties>
<body>
<section name="Requirements">
<p>
Any JRE 1.4 VM should work.
<a href="http://www.java.com:80/en/download/manual.jsp">Get the latest for your platform straight from Sun</a>.
If you are running Mac OS/X Jaguar or Panther you should already be set. Please let us know of any problems.
</p>
<p>
For deployment you need a J2EE appserver, that supports version 2.3 of the Servlet API.
In tomcat you can simply drop it into the <tt>$CATALINA_HOME/webapps</tt> folder.
</p>
<p>
For more information see the <a href="bdg.html">Busy Developers Guide</a>.
</p>
</section>
</body>
</document>
|
|
From: <pe...@us...> - 2003-12-16 15:04:34
|
Update of /cvsroot/neuclear/neuclear-id-sample/src/webapp
In directory sc8-pr-cvs1:/tmp/cvs-serv10622/src/webapp
Modified Files:
index.jsp
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
Index: index.jsp
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id-sample/src/webapp/index.jsp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** index.jsp 14 Dec 2003 21:33:11 -0000 1.1.1.1
--- index.jsp 16 Dec 2003 15:04:31 -0000 1.2
***************
*** 43,46 ****
--- 43,58 ----
<%=userns.getName()%> is Logged In<br><hr>
<a href="<%=ServletTools.getAbsoluteURL(request,"/")%>?logout=1">Log Out</a>
+
+ <p>
+ <form action="Send" method="GET">
+ <b>To:</b><br/>
+ <input name="to"><br/>
+ <b>Subject:</b><br/>
+ <input name="subject" length="80"><br/>
+ <b>Message:</b><br/>
+ <textarea name="message">
+ </textarea><br/>
+ <input type="submit" value="Sign and Send">
+ </form>
<%
}
|
|
From: <pe...@us...> - 2003-12-16 15:04:34
|
Update of /cvsroot/neuclear/neuclear-id-sample/src/webapp/WEB-INF
In directory sc8-pr-cvs1:/tmp/cvs-serv10622/src/webapp/WEB-INF
Modified Files:
web.xml
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
Index: web.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id-sample/src/webapp/WEB-INF/web.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** web.xml 15 Dec 2003 23:31:31 -0000 1.3
--- web.xml 16 Dec 2003 15:04:31 -0000 1.4
***************
*** 10,13 ****
--- 10,14 ----
<context-param>
<param-name>serviceid</param-name>
+ <!-- Change the values below to your own service id -->
<param-value>neu://test</param-value>
<description>NeuClear id of Service</description>
***************
*** 19,26 ****
--- 20,29 ----
<context-param>
<param-name>keystore</param-name>
+ <!-- Change the below to the location of your keystore file or "default" for the users default keystore-->
<param-value>test</param-value>
</context-param>
<context-param>
<param-name>passphraseagent</param-name>
+ <!-- Change the below to the passphraseagent you wish to use. Valid choices are "gui" and "console" -->
<param-value>test</param-value>
</context-param>
***************
*** 38,44 ****
--- 41,56 ----
<load-on-startup>1</load-on-startup>
</servlet>
+ <servlet>
+ <servlet-name>sendmessage</servlet-name>
+ <servlet-class>org.neuclear.id.sample.SendMessageServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
<servlet-mapping>
<servlet-name>authenticator</servlet-name>
<url-pattern>/Authorize</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>sendmessage</servlet-name>
+ <url-pattern>/Send</url-pattern>
</servlet-mapping>
<welcome-file-list>
|
|
From: <pe...@us...> - 2003-12-16 03:42:26
|
Update of /cvsroot/neuclear/neuclear-id-sample/xdocs/images In directory sc8-pr-cvs1:/tmp/cvs-serv32384/xdocs/images Log Message: Directory /cvsroot/neuclear/neuclear-id-sample/xdocs/images added to the repository |
|
From: <pe...@us...> - 2003-12-16 03:41:51
|
Update of /cvsroot/neuclear/neuclear-id-sample/xdocs In directory sc8-pr-cvs1:/tmp/cvs-serv32283/xdocs Log Message: Directory /cvsroot/neuclear/neuclear-id-sample/xdocs added to the repository |
|
From: <pe...@us...> - 2003-12-15 23:33:08
|
Update of /cvsroot/neuclear/neuclear-id/src/webapp/WEB-INF In directory sc8-pr-cvs1:/tmp/cvs-serv26213/src/webapp/WEB-INF Modified Files: web.xml Log Message: 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() Index: web.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/webapp/WEB-INF/web.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** web.xml 14 Dec 2003 20:53:04 -0000 1.7 --- web.xml 15 Dec 2003 23:33:05 -0000 1.8 *************** *** 1,19 **** <!DOCTYPE web-app ! PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ! "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd"> ! <web-app> - <display-name>NeuClear WebApp</display-name> <description> Demo NeuClear Web app </description> <filter> <filter-name>authfilter</filter-name> <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> - <init-param> - <param-name>serviceid</param-name> - <param-value>neu://test</param-value> - </init-param> </filter> <filter-mapping> --- 1,31 ---- + <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app ! PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ! "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>NeuClear WebApp</display-name> <description> Demo NeuClear Web app </description> + <context-param> + <param-name>serviceid</param-name> + <param-value>neu://test</param-value> + <description>NeuClear id of Service</description> + </context-param> + <context-param> + <param-name>title</param-name> + <param-value>NeuClear Sample Web Application</param-value> + </context-param> + <context-param> + <param-name>keystore</param-name> + <param-value>test</param-value> + </context-param> + <context-param> + <param-name>passphraseagent</param-name> + <param-value>test</param-value> + </context-param> <filter> <filter-name>authfilter</filter-name> <filter-class>org.neuclear.auth.AuthenticationFilter</filter-class> </filter> <filter-mapping> *************** *** 22,42 **** </filter-mapping> <servlet> - <servlet-name>jcesigner</servlet-name> - <servlet-class>org.neuclear.signers.servlet.SigningServlet</servlet-class> - <init-param> - <param-name>title</param-name> - <param-value>NeuClear Local Signer</param-value> - </init-param> - <init-param> - <param-name>keeppassphrase</param-name> - <param-value>1</param-value> - </init-param> - <init-param> - <param-name>passphraseagent</param-name> - <param-value>gui</param-value> - </init-param> - <load-on-startup>1</load-on-startup> - </servlet> - <servlet> <servlet-name>demosigner</servlet-name> <servlet-class>org.neuclear.signers.servlet.DemoSigningServlet</servlet-class> --- 34,37 ---- *************** *** 50,79 **** <servlet-name>authenticator</servlet-name> <servlet-class>org.neuclear.auth.AuthenticationServlet</servlet-class> - <init-param> - <param-name>title</param-name> - <param-value>NeuClear Example Application</param-value> - </init-param> - <init-param> - <param-name>serviceid</param-name> - <param-value>neu://test</param-value> - </init-param> - <init-param> - <param-name>keystore</param-name> - <param-value></param-value> - </init-param> - <init-param> - <param-name>keeppassphrase</param-name> - <param-value>1</param-value> - </init-param> - <init-param> - <param-name>passphraseagent</param-name> - <param-value>gui</param-value> - </init-param> <load-on-startup>1</load-on-startup> </servlet> - <servlet-mapping> - <servlet-name>jcesigner</servlet-name> - <url-pattern>/Signer</url-pattern> - </servlet-mapping> <servlet-mapping> <servlet-name>demosigner</servlet-name> --- 45,50 ---- |
|
From: <pe...@us...> - 2003-12-15 23:33:08
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet
In directory sc8-pr-cvs1:/tmp/cvs-serv26213/src/java/org/neuclear/signers/servlet
Modified Files:
SigningServlet.java
Log Message:
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()
Index: SigningServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet/SigningServlet.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** SigningServlet.java 15 Dec 2003 14:38:30 -0000 1.22
--- SigningServlet.java 15 Dec 2003 23:33:05 -0000 1.23
***************
*** 2,5 ****
--- 2,10 ----
* $Id$
* $Log$
+ * Revision 1.23 2003/12/15 23:33:05 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.22 2003/12/15 14:38:30 pelle
* Added EnsureHostRequestFilter to commons, to only allow requests from a particular IP
***************
*** 257,261 ****
context.log("NEUCLEAR: Initialising SigningServlet");
try {
! title = Utility.denullString(config.getInitParameter("title"), "NeuClear Signing Service");
signer = createSigner(config);
} catch (GeneralSecurityException e) {
--- 262,266 ----
context.log("NEUCLEAR: Initialising SigningServlet");
try {
! title = ServletTools.getInitParam("title",config);
signer = createSigner(config);
} catch (GeneralSecurityException e) {
|
|
From: <pe...@us...> - 2003-12-15 23:33:08
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver
In directory sc8-pr-cvs1:/tmp/cvs-serv26213/src/java/org/neuclear/receiver
Modified Files:
ReceiverServlet.java
Log Message:
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()
Index: ReceiverServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver/ReceiverServlet.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** ReceiverServlet.java 14 Dec 2003 20:53:04 -0000 1.14
--- ReceiverServlet.java 15 Dec 2003 23:33:04 -0000 1.15
***************
*** 2,5 ****
--- 2,10 ----
* $Id$
* $Log$
+ * Revision 1.15 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.14 2003/12/14 20:53:04 pelle
* Added ServletPassPhraseAgent which uses ThreadLocal to transfer the passphrase to the signer.
***************
*** 116,119 ****
--- 121,125 ----
import org.dom4j.Element;
import org.neuclear.commons.NeuClearException;
+ import org.neuclear.commons.servlets.ServletTools;
import org.neuclear.commons.crypto.signers.Signer;
import org.neuclear.commons.crypto.signers.ServletSignerFactory;
***************
*** 137,147 ****
super.init(config);
try {
signer=createSigner(config);
! } catch (GeneralSecurityException e) {
! e.printStackTrace(); //To change body of catch statement use Options | File Templates.
! } catch (NeuClearException e) {
! e.printStackTrace(); //To change body of catch statement use Options | File Templates.
! } catch (IOException e) {
! e.printStackTrace(); //To change body of catch statement use Options | File Templates.
}
}
--- 143,152 ----
super.init(config);
try {
+ serviceid = ServletTools.getInitParam("serviceid",config);
+ title = ServletTools.getInitParam("title",config);
signer=createSigner(config);
! } catch (Exception e) {
! ctx.log("Error in ReceiverServlet: "+e.getLocalizedMessage());
! throw new ServletException(e);
}
}
***************
*** 185,196 ****
public Signer getSigner(){
return signer;
! }
protected Signer createSigner(ServletConfig config) throws GeneralSecurityException, NeuClearException, IOException {
return ServletSignerFactory.getInstance().createSigner(config);
}
private Receiver receiver;
private Signer signer;
private static final Element OK = DocumentHelper.createElement("Status");
{
--- 190,209 ----
public Signer getSigner(){
return signer;
! } ;
protected Signer createSigner(ServletConfig config) throws GeneralSecurityException, NeuClearException, IOException {
return ServletSignerFactory.getInstance().createSigner(config);
}
+ public final String getTitle(){
+ return title;
+ }
+ public final String getServiceid() {
+ return serviceid;
+ }
private Receiver receiver;
private Signer signer;
private static final Element OK = DocumentHelper.createElement("Status");
+ private String serviceid;
+ private String title;
{
|