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-09-23 19:17:02
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/targets In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/id/targets Modified Files: TargetReference.java Log Message: Changed NameSpace to Identity. To cause less confusion in the future. Index: TargetReference.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/targets/TargetReference.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TargetReference.java 22 Sep 2003 19:24:01 -0000 1.2 --- TargetReference.java 23 Sep 2003 19:16:27 -0000 1.3 *************** *** 2,5 **** --- 2,9 ---- * $Id$ * $Log$ + * Revision 1.3 2003/09/23 19:16:27 pelle + * Changed NameSpace to Identity. + * To cause less confusion in the future. + * * Revision 1.2 2003/09/22 19:24:01 pelle * More fixes throughout to problems caused by renaming. *************** *** 22,27 **** * Revision 1.2 2003/02/14 21:10:33 pelle * The email sender works. The LogSender and the SoapSender should work but havent been tested yet. ! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger. ! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's * default receiver. * --- 26,31 ---- * Revision 1.2 2003/02/14 21:10:33 pelle * The email sender works. The LogSender and the SoapSender should work but havent been tested yet. ! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger. ! * The Identity object also has a new method send() which allows one to send a named object to the Identity's * default receiver. * |
|
From: <pe...@us...> - 2003-09-23 19:17:01
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/resolver
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/id/resolver
Modified Files:
NSResolver.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: NSResolver.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/resolver/NSResolver.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NSResolver.java 22 Sep 2003 19:24:01 -0000 1.2
--- NSResolver.java 23 Sep 2003 19:16:27 -0000 1.3
***************
*** 1,7 ****
package org.neuclear.id.resolver;
! import org.neuclear.id.InvalidNameSpaceException;
import org.neuclear.id.NSTools;
! import org.neuclear.id.NameSpace;
import org.neuclear.id.cache.NSCache;
import org.neuclear.id.verifier.NSVerifier;
--- 1,7 ----
package org.neuclear.id.resolver;
! import org.neuclear.id.InvalidIdentityException;
import org.neuclear.id.NSTools;
! import org.neuclear.id.Identity;
import org.neuclear.id.cache.NSCache;
import org.neuclear.id.verifier.NSVerifier;
***************
*** 12,16 ****
/**
! * Secure NameSpace resolver
*/
public final class NSResolver {
--- 12,16 ----
/**
! * Secure Identity resolver
*/
public final class NSResolver {
***************
*** 21,25 ****
/**
! * Retrieves the NameSpace object of the given name
* defaultstore for the given namespace.
* This is guaranteed to be valid as it checks the signatures on each level.
--- 21,25 ----
/**
! * Retrieves the Identity object of the given name
* defaultstore for the given namespace.
* This is guaranteed to be valid as it checks the signatures on each level.
***************
*** 27,32 ****
* @return
*/
! public final static NameSpace resolveNameSpace(String name) throws NeudistException, InvalidNameSpaceException {
! NameSpace ns = NSCACHE.fetchCached(name);
if (ns != null)
return ns;
--- 27,32 ----
* @return
*/
! public final static Identity resolveNameSpace(String name) throws NeudistException, InvalidIdentityException {
! Identity ns = NSCACHE.fetchCached(name);
if (ns != null)
return ns;
***************
*** 35,50 ****
String store = NSROOTSTORE;
boolean isRootlevel = parentname == null || parentname.equals("neu://");
! NameSpace parent = null;
if (!isRootlevel) {
parent = resolveNameSpace(parentname);
store = parent.getRepository();
}
! // fetches NameSpace from parent NameSpace's Default Store
! ns = (NameSpace) Source.getInstance().fetch(store, name);
if (ns == null)
! throw new NeudistException("NameSpace: " + name + " was not resolved");
PublicKey parentkey = (isRootlevel) ? NSVerifier.getRootPK() : parent.getAllowed();
if (!ns.verifySignature(parentkey))
! throw new InvalidNameSpaceException("NameSpace: " + name + " not allowed in " + parentname);
NSCACHE.cache(ns);
return ns; //This may not be null
--- 35,50 ----
String store = NSROOTSTORE;
boolean isRootlevel = parentname == null || parentname.equals("neu://");
! Identity parent = null;
if (!isRootlevel) {
parent = resolveNameSpace(parentname);
store = parent.getRepository();
}
! // fetches Identity from parent Identity's Default Store
! ns = (Identity) Source.getInstance().fetch(store, name);
if (ns == null)
! throw new NeudistException("Identity: " + name + " was not resolved");
PublicKey parentkey = (isRootlevel) ? NSVerifier.getRootPK() : parent.getAllowed();
if (!ns.verifySignature(parentkey))
! throw new InvalidIdentityException("Identity: " + name + " not allowed in " + parentname);
NSCACHE.cache(ns);
return ns; //This may not be null
|
|
From: <pe...@us...> - 2003-09-23 19:17:01
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/id/cache
Modified Files:
NSCache.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: NSCache.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache/NSCache.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NSCache.java 22 Sep 2003 19:24:01 -0000 1.2
--- NSCache.java 23 Sep 2003 19:16:27 -0000 1.3
***************
*** 4,8 ****
import com.waterken.adt.cache.Cache;
import org.neuclear.id.NSTools;
! import org.neuclear.id.NameSpace;
import org.neudist.utils.NeudistException;
--- 4,8 ----
import com.waterken.adt.cache.Cache;
import org.neuclear.id.NSTools;
! import org.neuclear.id.Identity;
import org.neudist.utils.NeudistException;
***************
*** 25,33 ****
* Attempts to get a verified PublicKey for the given name from the cache
* @param name Fully Normalised name
! * @return a valid NameSpace object if found otherwise null
*/
! public NameSpace fetchCached(String name) {
try { // I dont like the way it forces me to catch this. I need to rewrite it.
! return (NameSpace) spaces.fetch(name);
} catch (NoSuchElement noSuchElement) {
return null;
--- 25,33 ----
* Attempts to get a verified PublicKey for the given name from the cache
* @param name Fully Normalised name
! * @return a valid Identity object if found otherwise null
*/
! public Identity fetchCached(String name) {
try { // I dont like the way it forces me to catch this. I need to rewrite it.
! return (Identity) spaces.fetch(name);
} catch (NoSuchElement noSuchElement) {
return null;
***************
*** 35,39 ****
}
! public void cache(NameSpace ns) throws NeudistException {
// Only store if it's parent is already here
String parentName = NSTools.getParentNSURI(ns.getName());
--- 35,39 ----
}
! public void cache(Identity ns) throws NeudistException {
// Only store if it's parent is already here
String parentName = NSTools.getParentNSURI(ns.getName());
|
|
From: <pe...@us...> - 2003-09-23 19:17:00
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/contracts/transfer
Modified Files:
Asset.java Transfer.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: Asset.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer/Asset.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Asset.java 22 Sep 2003 19:24:01 -0000 1.2
--- Asset.java 23 Sep 2003 19:16:26 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:26 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:01 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 17,22 ****
* Revision 1.6 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 21,26 ----
* Revision 1.6 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
***************
*** 81,85 ****
/**
! * @return the XML NameSpace object
*/
public Namespace getNS() {
--- 85,89 ----
/**
! * @return the XML Identity object
*/
public Namespace getNS() {
Index: Transfer.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer/Transfer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Transfer.java 22 Sep 2003 19:24:01 -0000 1.2
--- Transfer.java 23 Sep 2003 19:16:26 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:26 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:01 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 17,22 ****
* Revision 1.7 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 21,26 ----
* Revision 1.7 2003/02/14 21:10:32 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
***************
*** 94,98 ****
/**
! * @return the XML NameSpace object
*/
public Namespace getNS() {
--- 98,102 ----
/**
! * @return the XML Identity object
*/
public Namespace getNS() {
|
|
From: <pe...@us...> - 2003-09-23 19:16:59
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/nsauth
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/contracts/nsauth
Modified Files:
AuthenticationTicket.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: AuthenticationTicket.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/nsauth/AuthenticationTicket.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AuthenticationTicket.java 22 Sep 2003 19:24:00 -0000 1.2
--- AuthenticationTicket.java 23 Sep 2003 19:16:26 -0000 1.3
***************
*** 12,16 ****
import org.dom4j.Element;
import org.dom4j.Namespace;
! import org.neuclear.id.NameSpace;
import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
--- 12,16 ----
import org.dom4j.Element;
import org.dom4j.Namespace;
! import org.neuclear.id.Identity;
import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
***************
*** 27,31 ****
/**
* This Authentication Ticket is used by websites to authenticate a user.
! * It generates a unique Name in the users NameSpace, which the user then signs.
*/
public class AuthenticationTicket extends NamedObject {
--- 27,31 ----
/**
* This Authentication Ticket is used by websites to authenticate a user.
! * It generates a unique Name in the users Identity, which the user then signs.
*/
public class AuthenticationTicket extends NamedObject {
***************
*** 40,44 ****
*
* @param user The Users namespace eg: neu://test/bob
! * @param requester The requesters NameSpace eg. neu://site/neubay
* @param validity The validity of the ticket in Milliseconds
* @param siteurl URL for interactive signing service to send user to after signing.
--- 40,44 ----
*
* @param user The Users namespace eg: neu://test/bob
! * @param requester The requesters Identity eg. neu://site/neubay
* @param validity The validity of the ticket in Milliseconds
* @param siteurl URL for interactive signing service to send user to after signing.
***************
*** 49,53 ****
NamedObject userns = NamedObjectFactory.fetchNamedObject(user);
! if (userns == null || (!(userns instanceof NameSpace)) || (Utility.isEmpty(((NameSpace) userns).getSigner())))
throw new NeudistException("The provided namespace: " + user + " doesnt exist or doesnt allow interactive signing");
Element root = getElement();
--- 49,53 ----
NamedObject userns = NamedObjectFactory.fetchNamedObject(user);
! if (userns == null || (!(userns instanceof Identity)) || (Utility.isEmpty(((Identity) userns).getSigner())))
throw new NeudistException("The provided namespace: " + user + " doesnt exist or doesnt allow interactive signing");
Element root = getElement();
***************
*** 128,132 ****
/**
! * @return the XML NameSpace object
*/
public Namespace getNS() {
--- 128,132 ----
/**
! * @return the XML Identity object
*/
public Namespace getNS() {
|
|
From: <pe...@us...> - 2003-09-23 19:16:59
|
Update of /cvsroot/neuclear/neuclear-id
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a
Modified Files:
project.xml
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/project.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** project.xml 22 Sep 2003 20:53:32 -0000 1.4
--- project.xml 23 Sep 2003 19:16:26 -0000 1.5
***************
*** 19,23 ****
</description>
! <url>http://neuclear.org/</url>
<repository>
<connection>
--- 19,23 ----
</description>
! <url>http://neuclear.org/id/</url>
<repository>
<connection>
***************
*** 30,54 ****
<siteAddress>neuclear.org</siteAddress>
! <siteDirectory>/home/sites/neuclear.org/public_html/</siteDirectory>
<issueTrackingUrl>http://devone.veraxpay.com:9090/</issueTrackingUrl>
! <mailingLists>
! <mailingList>
! <name>NeuClear Announce</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-announce</archive>
! </mailingList>
! <mailingList>
! <name>NeuClear General</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-general</archive>
! </mailingList>
<mailingList>
! <name>NeuClear Develop</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-develop</archive>
! </mailingList> </mailingLists>
<developers>
--- 30,56 ----
<siteAddress>neuclear.org</siteAddress>
! <siteDirectory>/home/sites/neuclear.org/public_html/id/</siteDirectory>
<issueTrackingUrl>http://devone.veraxpay.com:9090/</issueTrackingUrl>
! <mailingLists>
<mailingList>
! <name>NeuClear Announce</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</unsubscribe>
! <archive>http://sourceforge.net/mailarchive/forum.php?forum=neuclear-announce</archive>
! </mailingList>
! <mailingList>
! <name>NeuClear General</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</unsubscribe>
! <archive>http://sourceforge.net/mailarchive/forum.php?forum=neuclear-general</archive>
! </mailingList>
! <mailingList>
! <name>NeuClear Develop</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</unsubscribe>
! <archive>http://sourceforge.net/mailarchive/forum.php?forum=neuclear-develop</archive>
! </mailingList>
! </mailingLists>
!
<developers>
|
|
From: <pe...@us...> - 2003-09-23 19:16:35
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/store
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/test/org/neuclear/store
Modified Files:
AbstractStoreTest.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: AbstractStoreTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/store/AbstractStoreTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** AbstractStoreTest.java 22 Sep 2003 19:24:03 -0000 1.2
--- AbstractStoreTest.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
$Id$
$Log$
+ Revision 1.3 2003/09/23 19:16:29 pelle
+ Changed NameSpace to Identity.
+ To cause less confusion in the future.
+
Revision 1.2 2003/09/22 19:24:03 pelle
More fixes throughout to problems caused by renaming.
***************
*** 51,55 ****
Also first public release.
This implemnts simple named objects.
! - NameSpace Objects
- NSAuth Objects
--- 55,59 ----
Also first public release.
This implemnts simple named objects.
! - Identity Objects
- NSAuth Objects
***************
*** 86,90 ****
import junit.framework.TestCase;
! import org.neuclear.id.InvalidNameSpaceException;
import org.neudist.utils.NeudistException;
--- 90,94 ----
import junit.framework.TestCase;
! import org.neuclear.id.InvalidIdentityException;
import org.neudist.utils.NeudistException;
***************
*** 132,145 ****
! public void testStore() throws NeudistException, InvalidNameSpaceException {
System.out.println("\nTesting " + this.getClass().getName());
// System.out.println("Storing "+rootName);
! // store.receive(new NameSpace(rootName,root,root.getPublic()));
// System.out.println("Storing "+bobName);
! // store.receive(new NameSpace(bobName,root,bob.getPublic()));
// System.out.println("Storing "+bobAliceName);
! // store.receive(new NameSpace(bobAliceName,bob,alice.getPublic()));
// System.out.println("Storing "+eveName);
! // store.receive(new NameSpace(eveName,root,eve.getPublic()));
// System.out.println("Fetching "+rootName);
// NamedObject nobj1=store.fetch(rootName);
--- 136,149 ----
! public void testStore() throws NeudistException, InvalidIdentityException {
System.out.println("\nTesting " + this.getClass().getName());
// System.out.println("Storing "+rootName);
! // store.receive(new Identity(rootName,root,root.getPublic()));
// System.out.println("Storing "+bobName);
! // store.receive(new Identity(bobName,root,bob.getPublic()));
// System.out.println("Storing "+bobAliceName);
! // store.receive(new Identity(bobAliceName,bob,alice.getPublic()));
// System.out.println("Storing "+eveName);
! // store.receive(new Identity(eveName,root,eve.getPublic()));
// System.out.println("Fetching "+rootName);
// NamedObject nobj1=store.fetch(rootName);
|
|
From: <pe...@us...> - 2003-09-23 19:16:35
|
Update of /cvsroot/neuclear/neuclear-id/src/webapp
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/webapp
Modified Files:
index.jsp login.jsp
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: index.jsp
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/webapp/index.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** index.jsp 22 Sep 2003 19:24:03 -0000 1.2
--- index.jsp 23 Sep 2003 19:16:30 -0000 1.3
***************
*** 39,43 ****
if (ticket!=null){
! if (ticket.isNameValid()) {
loggedin=true;
userns=NSTools.getParentNSURI(ticket.getName());
--- 39,43 ----
if (ticket!=null){
! if (true /*ticket. isNameValid()*/) {//TODO Que pasa aca?
loggedin=true;
userns=NSTools.getParentNSURI(ticket.getName());
Index: login.jsp
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/webapp/login.jsp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** login.jsp 22 Sep 2003 19:24:03 -0000 1.2
--- login.jsp 23 Sep 2003 19:16:30 -0000 1.3
***************
*** 6,10 ****
org.neuclear.id.targets.TargetReference,
org.neudist.utils.ServletTools,
! org.neuclear.id.NameSpace,
org.neuclear.id.NamedObjectFactory,
org.neudist.utils.NeudistException,
--- 6,10 ----
org.neuclear.id.targets.TargetReference,
org.neudist.utils.ServletTools,
! org.neuclear.id.Identity,
org.neuclear.id.NamedObjectFactory,
org.neudist.utils.NeudistException,
***************
*** 16,20 ****
String userns=request.getParameter("namespace");
if (Utility.isEmpty(userns)) {
! response.sendError(500,"No NameSpace");
response.flushBuffer();
return;
--- 16,20 ----
String userns=request.getParameter("namespace");
if (Utility.isEmpty(userns)) {
! response.sendError(500,"No Identity");
response.flushBuffer();
return;
***************
*** 56,60 ****
<body>
<h3>contacting signing service...</h3>
! <form action="<%=((NameSpace)NamedObjectFactory.fetchNamedObject(userns)).getSigner()%>" method="POST">
<input name="base64xml" value="<%=XMLSecTools.encodeElementBase64(auth.getElement())%>" type="hidden">
<input name="endpoint" value="<%=siteurl%>" type="hidden"/>
--- 56,60 ----
<body>
<h3>contacting signing service...</h3>
! <form action="<%=((Identity)NamedObjectFactory.fetchNamedObject(userns)).getSigner()%>" method="POST">
<input name="base64xml" value="<%=XMLSecTools.encodeElementBase64(auth.getElement())%>" type="hidden">
<input name="endpoint" value="<%=siteurl%>" type="hidden"/>
|
|
From: <pe...@us...> - 2003-09-23 19:16:35
|
Update of /cvsroot/neuclear/neuclear-id/xdocs In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/xdocs Modified Files: index.xml navigation.xml Log Message: Changed NameSpace to Identity. To cause less confusion in the future. Index: index.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/xdocs/index.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.xml 19 Sep 2003 14:43:30 -0000 1.1.1.1 --- index.xml 23 Sep 2003 19:16:30 -0000 1.2 *************** *** 3,50 **** <properties> ! <title>NeuDist.org</title> <author email="pe...@ne...">Pelle Braendgaard</author> </properties> <body> - <section name="Restructuring of NeuDist"> - <p> - After much thinking and talking to colleagues I'm restructuring NeuDist and changing it's focus a bit. - From now on NeuDist will essentially be an XML based PKI and identity system. All the parts of NeuDist that have - to do with financial clearing and financial systems have been moved to <a href="http://neuclear.org">NeuClear</a>. - </p> - <p> - NeuDist it self will be split into several projects. The first being <a href="/xmlsig/">NeuDist-XMLSig</a>. This is our - homegrown XML Signature implementation, which will now be carried out as a seperate project. - </p> - </section> - <section name="New NeuDist Framework Release 0.40"> - <p> - [October 3rd, 2002] New Release 0.40 is available. This is the first version I would say is ready for live applications. - You can try out an <a href="http://neudist.org:8080/neudistframework/">example user authentication application here</a>. - </p> - <p> - Because things are moving quite fast right now, I recommend downloading via CVS rather than the distribution files. However if you just want to peak at - the source code go ahead. - </p> - </section> - <section name="Register Your Own NameSpaces"> - <p> - We are just getting the infrastructure in place to allow anyone to register namespaces. - To make it simple for people to understand, you will be able to register permanent namespaces (NEU's) for - you existing domain names. Initially any request coming from a .com,.net and .org domain will be registered for free. - To help finance the development we will start charging for non opensource domains soon. Prices will be quite low. - You can then have any number of namespaces under it. eg. Our domain name neudist.org has a NEU registered as neu://org/neudist. - </p> - <p> - Top level namespaces will be auctioned off. Starting fairly soon. We will initially control neu://neu, neu://test, - neu://com, neu://org, neu://net . Anything else will be available for sale to help fund our development. - </p> - <p> - You can create your own namespaces in the neu://test free for all namespace. The key for signing new test namespaces - is in CVS. You can use the org.neuclear.signers.commandline.CommandLineSigner class to create and sign new sub namespaces using - that key. We are in the process of simplifying this process a bit and wrapping it in shell and .bat file wrappers. - </p> - </section> <section name="Introduction"> <p> --- 3,11 ---- <properties> ! <title>NeuClear/Identity</title> <author email="pe...@ne...">Pelle Braendgaard</author> </properties> <body> <section name="Introduction"> <p> Index: navigation.xml =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/xdocs/navigation.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** navigation.xml 19 Sep 2003 14:43:30 -0000 1.1.1.1 --- navigation.xml 23 Sep 2003 19:16:30 -0000 1.2 *************** *** 1,21 **** <project name="neudist" repository="neudist" href="http://neudist.org"> ! <title>NeuDist - Distributed Clearing System</title> <body> <links> <!-- <item name="NeuDist Live!" href="http://neudist.org:8080/neudistframework/"/>--> - <item name="NeuDist" href="http://neudist.org/index.html"/> <item name="NeuClear" href="http://neuclear.org/index.html"/> <!-- <item name="NeuWiki" href="http://neudist.org:8080/neuwiki/"/>--> - <item name="Neubia" href="http://neubia.com"/> <item name="Talk.org" href="http://talk.org"/> ! <item name="SourceForge" href="http://sourceforge.net/projects/neudist/"/> </links> ! <menu name="NeuDist"> <item name="Front Page" href="/index.html"/> <item name="Overview" href="/overview.html"/> <item name="SubProjects" href="/subprojects.html"> ! <item name="XMLSignature Library" href="/xmlsig/index.html"/> </item> <item name="Use Cases" href="/usecases/index.html"> --- 1,19 ---- <project name="neudist" repository="neudist" href="http://neudist.org"> ! <title>NeuClear - Distributed Clearing System</title> <body> <links> <!-- <item name="NeuDist Live!" href="http://neudist.org:8080/neudistframework/"/>--> <item name="NeuClear" href="http://neuclear.org/index.html"/> <!-- <item name="NeuWiki" href="http://neudist.org:8080/neuwiki/"/>--> <item name="Talk.org" href="http://talk.org"/> ! <item name="SourceForge" href="http://sourceforge.net/projects/neuclear/"/> </links> ! <menu name="NeuClear"> <item name="Front Page" href="/index.html"/> <item name="Overview" href="/overview.html"/> <item name="SubProjects" href="/subprojects.html"> ! <item name="XMLSignature Library" href="http://www.neudist.org/xmlsig/index.html"/> </item> <item name="Use Cases" href="/usecases/index.html"> *************** *** 33,38 **** <item name="Installation" href="/installation.html"/> <item name="Credits and Dependencies" href="/credits.html"/> ! <item name="Downloads" href="http://sourceforge.net/project/showfiles.php?group_id=9652"/> ! <item name="SourceForge" href="http://sourceforge.net/projects/neudist/"/> </menu> </body> --- 31,35 ---- <item name="Installation" href="/installation.html"/> <item name="Credits and Dependencies" href="/credits.html"/> ! <item name="SourceForge" href="http://sourceforge.net/projects/neuclear/"/> </menu> </body> |
|
From: <pe...@us...> - 2003-09-23 19:16:34
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/signers/servlet
Modified Files:
DemoSigningServlet.java SigningServlet.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: DemoSigningServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet/DemoSigningServlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DemoSigningServlet.java 22 Sep 2003 19:24:02 -0000 1.2
--- DemoSigningServlet.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:29 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 28,33 ****
* Revision 1.5 2003/02/14 21:10:36 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 32,37 ----
* Revision 1.5 2003/02/14 21:10:36 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
***************
*** 99,105 ****
package org.neuclear.signers.servlet;
! import org.neuclear.id.InvalidNameSpaceException;
import org.neuclear.id.NSTools;
! import org.neuclear.id.NameSpace;
import org.neudist.crypto.signerstores.SignerStore;
import org.neudist.crypto.signerstores.SimpleSignerStore;
--- 103,109 ----
package org.neuclear.signers.servlet;
! import org.neuclear.id.InvalidIdentityException;
import org.neuclear.id.NSTools;
! import org.neuclear.id.Identity;
import org.neudist.crypto.signerstores.SignerStore;
import org.neudist.crypto.signerstores.SimpleSignerStore;
***************
*** 117,121 ****
private void buildTree() throws GeneralSecurityException, NeudistException, IOException {
! System.out.println("NEUDIST: Creating NameSpace Tree");
kpg = KeyPairGenerator.getInstance("RSA");
kpg.initialize(2048, new SecureRandom("Cartagena".getBytes()));
--- 121,125 ----
private void buildTree() throws GeneralSecurityException, NeudistException, IOException {
! System.out.println("NEUDIST: Creating Identity Tree");
kpg = KeyPairGenerator.getInstance("RSA");
kpg.initialize(2048, new SecureRandom("Cartagena".getBytes()));
***************
*** 135,143 ****
private void createNS(String name, String newPassword, PrivateKey signer) throws IOException, NeudistException, GeneralSecurityException {
name = NSTools.normalizeNameURI(name);
! System.out.println("NEUDIST: Generating key and NameSpace for: " + name);
KeyPair kp = kpg.generateKeyPair();
((SimpleSignerStore) getKeyStore()).addKey(name, newPassword.toCharArray(), kp.getPrivate());
! System.out.println("NEUDIST: Creating NameSpace");
! NameSpace ns = new NameSpace(name, kp.getPublic(), "http://neuclear.org:8080/neudistframework/Store", "http://neuclear.org:8080/neudistframework/Signer", "http://neuclear.org:8080/neudistframework/Logger", "");//TODO Fix these values
// id.addTarget(new TargetReference(id,,"store"));
System.out.println("NEUDIST: Signing");
--- 139,147 ----
private void createNS(String name, String newPassword, PrivateKey signer) throws IOException, NeudistException, GeneralSecurityException {
name = NSTools.normalizeNameURI(name);
! System.out.println("NEUDIST: Generating key and Identity for: " + name);
KeyPair kp = kpg.generateKeyPair();
((SimpleSignerStore) getKeyStore()).addKey(name, newPassword.toCharArray(), kp.getPrivate());
! System.out.println("NEUDIST: Creating Identity");
! Identity ns = new Identity(name, kp.getPublic(), "http://neuclear.org:8080/neudistframework/Store", "http://neuclear.org:8080/neudistframework/Signer", "http://neuclear.org:8080/neudistframework/Logger", "");//TODO Fix these values
// id.addTarget(new TargetReference(id,,"store"));
System.out.println("NEUDIST: Signing");
***************
*** 149,154 ****
// getStore().receive(id);//Test locally first
ns.sendObject();
! } catch (InvalidNameSpaceException e) {
! System.out.println("NEUDIST: NameSpace Error: " + e.getLocalizedMessage());
}
}
--- 153,158 ----
// getStore().receive(id);//Test locally first
ns.sendObject();
! } catch (InvalidIdentityException e) {
! System.out.println("NEUDIST: Identity Error: " + e.getLocalizedMessage());
}
}
Index: SigningServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/servlet/SigningServlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SigningServlet.java 22 Sep 2003 19:24:02 -0000 1.2
--- SigningServlet.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:29 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 25,30 ****
* Revision 1.15 2003/02/14 21:10:36 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 29,34 ----
* Revision 1.15 2003/02/14 21:10:36 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
***************
*** 120,124 ****
import org.dom4j.io.OutputFormat;
import org.dom4j.io.XMLWriter;
! import org.neuclear.id.InvalidNameSpaceException;
import org.neuclear.id.NSTools;
import org.neuclear.id.NamedObject;
--- 124,128 ----
import org.dom4j.io.OutputFormat;
import org.dom4j.io.XMLWriter;
! import org.neuclear.id.InvalidIdentityException;
import org.neuclear.id.NSTools;
import org.neuclear.id.NamedObject;
***************
*** 230,235 ****
isSigned = true;
out.println("<br>Done<br>");
! } catch (InvalidNameSpaceException e) {
! out.println("<br><font color=\"red\"><b>ERROR: Invalid NameSpace</b></font><br>");
isSigned = false;
} catch (InvalidPassphraseException e) {
--- 234,239 ----
isSigned = true;
out.println("<br>Done<br>");
! } catch (InvalidIdentityException e) {
! out.println("<br><font color=\"red\"><b>ERROR: Invalid Identity</b></font><br>");
isSigned = false;
} catch (InvalidPassphraseException e) {
***************
*** 237,241 ****
isSigned = false;
} catch (NonExistingSignerException e) {
! out.println("<br><font color=\"red\"><b>ERROR: We Aren't Able to Sign for that NameSpace</b></font><br>");
isSigned = false;
}
--- 241,245 ----
isSigned = false;
} catch (NonExistingSignerException e) {
! out.println("<br><font color=\"red\"><b>ERROR: We Aren't Able to Sign for that Identity</b></font><br>");
isSigned = false;
}
***************
*** 302,306 ****
signObject(obj, "hello".toCharArray());// TODO How do we get the passphrase here? Popup request?
return obj.getElement();
! } catch (InvalidNameSpaceException e) {
throw new SOAPException(e);
} catch (InvalidPassphraseException e) {
--- 306,310 ----
signObject(obj, "hello".toCharArray());// TODO How do we get the passphrase here? Popup request?
return obj.getElement();
! } catch (InvalidIdentityException e) {
throw new SOAPException(e);
} catch (InvalidPassphraseException e) {
***************
*** 313,317 ****
}
! protected static void signObject(NamedObject obj, char passphrase[]) throws NeudistException, InvalidNameSpaceException, InvalidPassphraseException, NonExistingSignerException {
if (!obj.isSigned()) {
try {
--- 317,321 ----
}
! protected static void signObject(NamedObject obj, char passphrase[]) throws NeudistException, InvalidIdentityException, InvalidPassphraseException, NonExistingSignerException {
if (!obj.isSigned()) {
try {
|
|
From: <pe...@us...> - 2003-09-23 19:16:34
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/commandline
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/signers/commandline
Modified Files:
CommandLineSigner.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: CommandLineSigner.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/signers/commandline/CommandLineSigner.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CommandLineSigner.java 22 Sep 2003 19:24:02 -0000 1.2
--- CommandLineSigner.java 23 Sep 2003 19:16:28 -0000 1.3
***************
*** 1,4 ****
--- 1,8 ----
/* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:28 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 27,32 ****
* Revision 1.10 2003/02/14 21:10:35 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 31,36 ----
* Revision 1.10 2003/02/14 21:10:35 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
***************
*** 105,109 ****
import org.dom4j.Document;
import org.neuclear.id.NSTools;
! import org.neuclear.id.NameSpace;
import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
--- 109,113 ----
import org.dom4j.Document;
import org.neuclear.id.NSTools;
! import org.neuclear.id.Identity;
import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
***************
*** 192,196 ****
} else
newkid = ks.getCertificate(alias).getPublicKey(); //Self Sign
! subject = new NameSpace(namespace, newkid, defaultstore, defaultsigner, defaultlogger, defaultreceiver);
}
--- 196,200 ----
} else
newkid = ks.getCertificate(alias).getPublicKey(); //Self Sign
! subject = new Identity(namespace, newkid, defaultstore, defaultsigner, defaultlogger, defaultreceiver);
}
***************
*** 250,257 ****
options.addOption("n", "name", true, "specify name of new object");
options.addOption("w", "allow", true, "specify alias of owner of new namespace");
! options.addOption("r", "defaultrepository", true, "NameSpace's default Repository");
! options.addOption("i", "defaultsigner", true, "NameSpace's default Interactive Signer");
! options.addOption("l", "defaultlogger", true, "NameSpace's default Logging Service");
! options.addOption("b", "defaultreceiver", true, "NameSpace's default Receiver");
--- 254,261 ----
options.addOption("n", "name", true, "specify name of new object");
options.addOption("w", "allow", true, "specify alias of owner of new namespace");
! options.addOption("r", "defaultrepository", true, "Identity's default Repository");
! options.addOption("i", "defaultsigner", true, "Identity's default Interactive Signer");
! options.addOption("l", "defaultlogger", true, "Identity's default Logging Service");
! options.addOption("b", "defaultreceiver", true, "Identity's default Receiver");
|
|
From: <pe...@us...> - 2003-09-23 19:16:34
|
Update of /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/test/org/neuclear/id
Modified Files:
NSToolsTest.java NameSpaceTest.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: NSToolsTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/NSToolsTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NSToolsTest.java 22 Sep 2003 19:24:03 -0000 1.2
--- NSToolsTest.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
$Id$
$Log$
+ Revision 1.3 2003/09/23 19:16:29 pelle
+ Changed NameSpace to Identity.
+ To cause less confusion in the future.
+
Revision 1.2 2003/09/22 19:24:03 pelle
More fixes throughout to problems caused by renaming.
***************
*** 36,40 ****
Also first public release.
This implemnts simple named objects.
! - NameSpace Objects
- NSAuth Objects
--- 40,44 ----
Also first public release.
This implemnts simple named objects.
! - Identity Objects
- NSAuth Objects
Index: NameSpaceTest.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/test/org/neuclear/id/NameSpaceTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NameSpaceTest.java 19 Sep 2003 14:54:43 -0000 1.2
--- NameSpaceTest.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
$Id$
$Log$
+ Revision 1.3 2003/09/23 19:16:29 pelle
+ Changed NameSpace to Identity.
+ To cause less confusion in the future.
+
Revision 1.2 2003/09/19 14:54:43 pelle
Bumped version to 0.7
***************
*** 60,64 ****
Also first public release.
This implemnts simple named objects.
! - NameSpace Objects
- NSAuth Objects
--- 64,68 ----
Also first public release.
This implemnts simple named objects.
! - Identity Objects
- NSAuth Objects
***************
*** 175,181 ****
test= (RSAPrivateKey)ks.getKey("neu://test","neuclear".toCharArray());
//
! // NameSpace neuBob=createNeuBob();
! // NameSpace neuAlice=new NameSpace("neu://alice",root,alice.getPublic());
! // NameSpace neuBobAlice=new NameSpace("neu://bob/alice",bob,alice.getPublic());
--- 179,185 ----
test= (RSAPrivateKey)ks.getKey("neu://test","neuclear".toCharArray());
//
! // Identity neuBob=createNeuBob();
! // Identity neuAlice=new Identity("neu://alice",root,alice.getPublic());
! // Identity neuBobAlice=new Identity("neu://bob/alice",bob,alice.getPublic());
***************
*** 195,212 ****
/*
! private NameSpace createNeuRoot() throws NeudistException {
! return null;//new NameSpace("neu://",root,root.getPublic());
}
! private NameSpace createNeuBob() throws NeudistException {
! return null;//new NameSpace("neu://bob",root,bob.getPublic());
}
! private NameSpace createNeuAlice() throws NeudistException {
! return null;// new NameSpace("neu://alice",root,alice.getPublic());
}
! private NameSpace createNeuBobAlice() throws NeudistException {
! return null;// new NameSpace("neu://bob/alice",bob,alice.getPublic());
}
! private NameSpace createNeuEvilEve() throws NeudistException {
! return null;// new NameSpace("neu://eve",eve,eve.getPublic());
}
*/
--- 199,216 ----
/*
! private Identity createNeuRoot() throws NeudistException {
! return null;//new Identity("neu://",root,root.getPublic());
}
! private Identity createNeuBob() throws NeudistException {
! return null;//new Identity("neu://bob",root,bob.getPublic());
}
! private Identity createNeuAlice() throws NeudistException {
! return null;// new Identity("neu://alice",root,alice.getPublic());
}
! private Identity createNeuBobAlice() throws NeudistException {
! return null;// new Identity("neu://bob/alice",bob,alice.getPublic());
}
! private Identity createNeuEvilEve() throws NeudistException {
! return null;// new Identity("neu://eve",eve,eve.getPublic());
}
*/
***************
*** 229,234 ****
}
! /* public void testCreateRoot() throws NeudistException, InvalidNameSpaceException{
! NameSpace neuRoot=createNeuRoot();
Store neuspace=new MemoryStore();
neuspace.receive(neuRoot);
--- 233,238 ----
}
! /* public void testCreateRoot() throws NeudistException, InvalidIdentityException{
! Identity neuRoot=createNeuRoot();
Store neuspace=new MemoryStore();
neuspace.receive(neuRoot);
***************
*** 238,244 ****
/*
! public void testCreateChild() throws NeudistException, InvalidNameSpaceException{
MemoryStore neuspace=new MemoryStore();
! NameSpace neuBob=new NameSpace("neu://test/bob",bob.getPublic());
neuBob.sign(test);
neuspace.receive(neuBob);
--- 242,248 ----
/*
! public void testCreateChild() throws NeudistException, InvalidIdentityException{
MemoryStore neuspace=new MemoryStore();
! Identity neuBob=new Identity("neu://test/bob",bob.getPublic());
neuBob.sign(test);
neuspace.receive(neuBob);
***************
*** 247,258 ****
}
! public void testCreateInvalidChild() throws NeudistException, InvalidNameSpaceException{
MemoryStore neuspace=new MemoryStore();
! NameSpace neuEve=new NameSpace("neu://test/eve",eve.getPublic());
neuEve.sign(eve.getPrivate());
boolean success=false;
try {
neuspace.receive(neuEve);
! } catch (InvalidNameSpaceException e) {
success=true;
}
--- 251,262 ----
}
! public void testCreateInvalidChild() throws NeudistException, InvalidIdentityException{
MemoryStore neuspace=new MemoryStore();
! Identity neuEve=new Identity("neu://test/eve",eve.getPublic());
neuEve.sign(eve.getPrivate());
boolean success=false;
try {
neuspace.receive(neuEve);
! } catch (InvalidIdentityException e) {
success=true;
}
|
|
From: <pe...@us...> - 2003-09-23 19:16:34
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/store
Modified Files:
EncryptedFileStore.java FileStore.java Store.java
StoreFactory.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: EncryptedFileStore.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store/EncryptedFileStore.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** EncryptedFileStore.java 22 Sep 2003 19:24:02 -0000 1.2
--- EncryptedFileStore.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:29 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 64,68 ****
* Also first public release.
* This implemnts simple named objects.
! * - NameSpace Objects
* - NSAuth Objects
*
--- 68,72 ----
* Also first public release.
* This implemnts simple named objects.
! * - Identity Objects
* - NSAuth Objects
*
Index: FileStore.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store/FileStore.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FileStore.java 22 Sep 2003 19:24:02 -0000 1.2
--- FileStore.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:29 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 49,53 ****
* Also first public release.
* This implemnts simple named objects.
! * - NameSpace Objects
* - NSAuth Objects
*
--- 53,57 ----
* Also first public release.
* This implemnts simple named objects.
! * - Identity Objects
* - NSAuth Objects
*
***************
*** 135,139 ****
}
! // public void store(Document doc) throws InvalidNameSpaceException,IOException {
// store(new NSDLObject(doc));
// }
--- 139,143 ----
}
! // public void store(Document doc) throws InvalidIdentityException,IOException {
// store(new NSDLObject(doc));
// }
***************
*** 173,177 ****
protected static String getFileName(NamedObject obj) throws NeudistException {
return getFileName(obj.getName());
! // if (! (obj instanceof NameSpace))
// return obj.getName();
// else if (obj.getName().equals("/")||obj.getName().equals(""))
--- 177,181 ----
protected static String getFileName(NamedObject obj) throws NeudistException {
return getFileName(obj.getName());
! // if (! (obj instanceof Identity))
// return obj.getName();
// else if (obj.getName().equals("/")||obj.getName().equals(""))
Index: Store.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store/Store.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Store.java 22 Sep 2003 19:24:02 -0000 1.2
--- Store.java 23 Sep 2003 19:16:29 -0000 1.3
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:29 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 74,78 ****
* Also first public release.
* This implemnts simple named objects.
! * - NameSpace Objects
* - NSAuth Objects
*
--- 78,82 ----
* Also first public release.
* This implemnts simple named objects.
! * - Identity Objects
* - NSAuth Objects
*
***************
*** 114,118 ****
package org.neuclear.store;
! import org.neuclear.id.InvalidNameSpaceException;
import org.neuclear.id.NamedObject;
import org.neuclear.id.verifier.NSVerifier;
--- 118,122 ----
package org.neuclear.store;
! import org.neuclear.id.InvalidIdentityException;
import org.neuclear.id.NamedObject;
import org.neuclear.id.verifier.NSVerifier;
***************
*** 127,141 ****
/**
! * This handles the NameSpace checking on the object.
*/
! public final void receive(NamedObject obj) throws InvalidNameSpaceException, NeudistException {
try {
// Dont allow overwrites
//TODO: Implement versioning
// if (fetch(obj.getName())!=null)
! // throw new InvalidNameSpaceException("The name: "+obj.getName()+" already exists");
if (!NSVerifier.isNameValid(obj))
! throw new InvalidNameSpaceException("The name: " + obj.getName() + " is not allowed");
rawStore(obj);
if (next != null)
--- 131,145 ----
/**
! * This handles the Identity checking on the object.
*/
! public final void receive(NamedObject obj) throws InvalidIdentityException, NeudistException {
try {
// Dont allow overwrites
//TODO: Implement versioning
// if (fetch(obj.getName())!=null)
! // throw new InvalidIdentityException("The name: "+obj.getName()+" already exists");
if (!NSVerifier.isNameValid(obj))
! throw new InvalidIdentityException("The name: " + obj.getName() + " is not allowed");
rawStore(obj);
if (next != null)
***************
*** 145,150 ****
e.printStackTrace();
}
! // if (e instanceof InvalidNameSpaceException)
! // throw (InvalidNameSpaceException)e;
// else if(e instanceof NeudistException)
// throw (NeudistException)e;
--- 149,154 ----
e.printStackTrace();
}
! // if (e instanceof InvalidIdentityException)
! // throw (InvalidIdentityException)e;
// else if(e instanceof NeudistException)
// throw (NeudistException)e;
Index: StoreFactory.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/store/StoreFactory.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** StoreFactory.java 19 Sep 2003 14:41:22 -0000 1.1.1.1
--- StoreFactory.java 23 Sep 2003 19:16:29 -0000 1.2
***************
*** 2,5 ****
--- 2,9 ----
* $Id$
* $Log$
+ * Revision 1.2 2003/09/23 19:16:29 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.1.1.1 2003/09/19 14:41:22 pelle
* First import into the neuclear project. This was originally under the SF neudist
***************
*** 24,28 ****
* Also first public release.
* This implemnts simple named objects.
! * - NameSpace Objects
* - NSAuth Objects
*
--- 28,32 ----
* Also first public release.
* This implemnts simple named objects.
! * - Identity Objects
* - NSAuth Objects
*
|
|
From: <pe...@us...> - 2003-09-23 19:16:33
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/senders
Modified Files:
LogSender.java SmtpSender.java SoapSender.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: LogSender.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders/LogSender.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** LogSender.java 22 Sep 2003 19:24:02 -0000 1.2
--- LogSender.java 23 Sep 2003 19:16:28 -0000 1.3
***************
*** 23,26 ****
--- 23,30 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:28 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 42,47 ****
* Revision 1.1 2003/02/14 21:10:34 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 46,51 ----
* Revision 1.1 2003/02/14 21:10:34 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
***************
*** 50,55 ****
public void send(String endpoint, NamedObject obj) throws NeudistException {
try {
! String digest = URLEncoder.encode(Base64.encode(obj.getDigest()));
! String name = URLEncoder.encode(obj.getName());
URL url = new URL(Utility.denullString(endpoint, LOGGER) + "?nohtml=1&name=" + name + "&digest=" + digest);
url.openStream();
--- 54,59 ----
public void send(String endpoint, NamedObject obj) throws NeudistException {
try {
! String digest = URLEncoder.encode(Base64.encode(obj.getDigest()), "UTF-8");
! String name = URLEncoder.encode(obj.getName(), "UTF-8");
URL url = new URL(Utility.denullString(endpoint, LOGGER) + "?nohtml=1&name=" + name + "&digest=" + digest);
url.openStream();
***************
*** 83,87 ****
String digest = Base64.encode(rdigest);
// System.out.println(digest);
! String encdigest = URLEncoder.encode(digest);
URL url = null;
url = new URL(LOGGER + "?mode=Query&nohtml=1&digest=" + encdigest);
--- 87,91 ----
String digest = Base64.encode(rdigest);
// System.out.println(digest);
! String encdigest = URLEncoder.encode(digest, "UTF-8");
URL url = null;
url = new URL(LOGGER + "?mode=Query&nohtml=1&digest=" + encdigest);
Index: SmtpSender.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders/SmtpSender.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SmtpSender.java 22 Sep 2003 19:24:02 -0000 1.2
--- SmtpSender.java 23 Sep 2003 19:16:28 -0000 1.3
***************
*** 8,11 ****
--- 8,15 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:28 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 23,28 ****
* Revision 1.1 2003/02/14 21:10:35 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 27,32 ----
* Revision 1.1 2003/02/14 21:10:35 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
Index: SoapSender.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders/SoapSender.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SoapSender.java 22 Sep 2003 19:24:02 -0000 1.2
--- SoapSender.java 23 Sep 2003 19:16:28 -0000 1.3
***************
*** 8,11 ****
--- 8,15 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:28 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 23,28 ****
* Revision 1.1 2003/02/14 21:10:35 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent NameSpace's logger.
! * The NameSpace object also has a new method send() which allows one to send a named object to the NameSpace's
* default receiver.
*
--- 27,32 ----
* Revision 1.1 2003/02/14 21:10:35 pelle
* The email sender works. The LogSender and the SoapSender should work but havent been tested yet.
! * The NamedObject has a new log() method that logs it's contents at it's parent Identity's logger.
! * The Identity object also has a new method send() which allows one to send a named object to the Identity's
* default receiver.
*
|
|
From: <pe...@us...> - 2003-09-23 19:16:32
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/verifier
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/id/verifier
Modified Files:
NSVerifier.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: NSVerifier.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/verifier/NSVerifier.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NSVerifier.java 22 Sep 2003 19:24:01 -0000 1.2
--- NSVerifier.java 23 Sep 2003 19:16:28 -0000 1.3
***************
*** 1,7 ****
package org.neuclear.id.verifier;
! import org.neuclear.id.InvalidNameSpaceException;
import org.neuclear.id.NSTools;
! import org.neuclear.id.NameSpace;
import org.neuclear.id.NamedObject;
import org.neuclear.id.resolver.NSResolver;
--- 1,7 ----
package org.neuclear.id.verifier;
! import org.neuclear.id.InvalidIdentityException;
import org.neuclear.id.NSTools;
! import org.neuclear.id.Identity;
import org.neuclear.id.NamedObject;
import org.neuclear.id.resolver.NSResolver;
***************
*** 22,26 ****
/**
* We first check if the name is syntactically correct.
! * Then we check if it is a toplevel NameSpace.
* If it is we check if the objects signature matches the toplevel namespace
* We check if the parent is valid
--- 22,26 ----
/**
* We first check if the name is syntactically correct.
! * Then we check if it is a toplevel Identity.
* If it is we check if the objects signature matches the toplevel namespace
* We check if the parent is valid
***************
*** 35,48 ****
if (parentName.equals("neu://")) {
boolean valid = obj.verifySignature(getRootPK());
! // if (valid && obj instanceof NameSpace)
! // NSResolver.NSCACHE.cache((NameSpace)obj);
return valid;
}
// Allright we need to do this the hard way
! NameSpace parent = null;
try {
parent = NSResolver.resolveNameSpace(parentName);
! } catch (InvalidNameSpaceException e) {
return false;
}
--- 35,48 ----
if (parentName.equals("neu://")) {
boolean valid = obj.verifySignature(getRootPK());
! // if (valid && obj instanceof Identity)
! // NSResolver.NSCACHE.cache((Identity)obj);
return valid;
}
// Allright we need to do this the hard way
! Identity parent = null;
try {
parent = NSResolver.resolveNameSpace(parentName);
! } catch (InvalidIdentityException e) {
return false;
}
***************
*** 52,57 ****
boolean valid = (parent != null && parent.postAllowed(obj));
! // if (valid && obj instanceof NameSpace)
! // NSResolver.NSCACHE.cache((NameSpace)obj);
return valid;
}
--- 52,57 ----
boolean valid = (parent != null && parent.postAllowed(obj));
! // if (valid && obj instanceof Identity)
! // NSResolver.NSCACHE.cache((Identity)obj);
return valid;
}
|
|
From: <pe...@us...> - 2003-09-23 19:16:32
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver
In directory sc8-pr-cvs1:/tmp/cvs-serv18509a/src/java/org/neuclear/receiver
Modified Files:
Receiver.java
Log Message:
Changed NameSpace to Identity.
To cause less confusion in the future.
Index: Receiver.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver/Receiver.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Receiver.java 22 Sep 2003 19:24:02 -0000 1.2
--- Receiver.java 23 Sep 2003 19:16:28 -0000 1.3
***************
*** 9,12 ****
--- 9,16 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/23 19:16:28 pelle
+ * Changed NameSpace to Identity.
+ * To cause less confusion in the future.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 29,33 ****
*/
! import org.neuclear.id.InvalidNameSpaceException;
import org.neuclear.id.NamedObject;
import org.neudist.utils.NeudistException;
--- 33,37 ----
*/
! import org.neuclear.id.InvalidIdentityException;
import org.neuclear.id.NamedObject;
import org.neudist.utils.NeudistException;
***************
*** 44,50 ****
* you can not trust it.
* @param obj
! * @throws InvalidNameSpaceException
* @throws NeudistException
*/
! void receive(NamedObject obj) throws InvalidNameSpaceException, NeudistException;
}
--- 48,54 ----
* you can not trust it.
* @param obj
! * @throws InvalidIdentityException
* @throws NeudistException
*/
! void receive(NamedObject obj) throws InvalidIdentityException, NeudistException;
}
|
|
From: <pe...@us...> - 2003-09-22 20:53:38
|
Update of /cvsroot/neuclear/neuclear-id
In directory sc8-pr-cvs1:/tmp/cvs-serv25886
Modified Files:
project.xml
Log Message:
Updated with new sourceforge details
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/project.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** project.xml 22 Sep 2003 19:24:03 -0000 1.3
--- project.xml 22 Sep 2003 20:53:32 -0000 1.4
***************
*** 31,38 ****
<siteAddress>neuclear.org</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/</siteDirectory>
! <issueTrackingUrl>http://neuclear.org:8080/jira/secure/BrowseProject.jspa</issueTrackingUrl>
<mailingLists>
<mailingList>
! <name>Neuclear Announce</name>
<subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</subscribe>
<unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</unsubscribe>
--- 31,38 ----
<siteAddress>neuclear.org</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/</siteDirectory>
! <issueTrackingUrl>http://devone.veraxpay.com:9090/</issueTrackingUrl>
<mailingLists>
<mailingList>
! <name>NeuClear Announce</name>
<subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</subscribe>
<unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</unsubscribe>
***************
*** 40,49 ****
</mailingList>
<mailingList>
! <name>Neuclear Discuss</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-discuss</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-discuss</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-discuss</archive>
</mailingList>
! </mailingLists>
<developers>
--- 40,54 ----
</mailingList>
<mailingList>
! <name>NeuClear General</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-general</archive>
</mailingList>
! <mailingList>
! <name>NeuClear Develop</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-develop</archive>
! </mailingList> </mailingLists>
<developers>
***************
*** 124,128 ****
</properties>
</dependency>
! <!-- <dependency>
<id>javamail</id>
<version>1.3</version>
--- 129,133 ----
</properties>
</dependency>
! <dependency>
<id>javamail</id>
<version>1.3</version>
***************
*** 135,139 ****
<jar>activation.jar</jar>
<url>http://java.sun.com/products/javabeans/glasgow/jaf.html</url>
! </dependency>-->
</dependencies>
<build>
--- 140,144 ----
<jar>activation.jar</jar>
<url>http://java.sun.com/products/javabeans/glasgow/jaf.html</url>
! </dependency>
</dependencies>
<build>
***************
*** 143,148 ****
<!-- </sourceDirectories>-->
! <!-- <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
! -->
<integrationUnitTestSourceDirectory/>
--- 148,152 ----
<!-- </sourceDirectories>-->
! <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
<integrationUnitTestSourceDirectory/>
|
|
From: <pe...@us...> - 2003-09-22 20:10:16
|
Update of /cvsroot/neuclear/neuclear-pay/xdocs
In directory sc8-pr-cvs1:/tmp/cvs-serv15990/xdocs
Added Files:
credits.xml index.xml navigation.xml
Log Message:
Added further minor project documentation.
--- NEW FILE: credits.xml ---
<?xml version="1.0"?>
<document>
<properties>
<title>Credits and Dependencies</title>
<author email="pe...@ne...">Pelle Braendgaard</author>
</properties>
<body>
<section name="Dependencies">
<p>
We are currently not using much in the way of special libraries. Different implementations will have
dependencies on databases etc.
</p>
</section>
<section name="Credits">
<p>
A lot of this work has been inspired by the writings of
<a href="http://www.iang.org">Ian Grigg</a> and <a href="http://www.shipwright.com">Bob Hettingah</a>.
</p>
</section>
</body>
</document>
--- NEW FILE: index.xml ---
<?xml version="1.0"?>
<document>
<properties>
<title>NeuClear Payment Processor</title>
<author email="pe...@ne...">Pelle Braendgaard</author>
</properties>
<body>
<section name="Introduction">
<p>
The NeuClear Payment Processor provides a simple abstraction for executing
book entry Payment transactions on the NeuClear clearing platform.
</p>
<p>
A fully functional implementation of the PaymentProcessor is implemented based on
the <a href="http://neuclear.org/ledger/">NeuClear Ledger API</a>.
</p>
<p>
Implementations based on other backends should be simple to create. If you wish to implement it ontop
of an existing SQL ledger. We recommend extending the NeuClear Ledger instead of writing a completely new
Payment Processor.
</p>
</section>
</body>
</document>
--- NEW FILE: navigation.xml ---
<project name="neudist" repository="neudist" href="http://neudist.org">
<title>NeuClear - Payment Processor</title>
<body>
<links>
<item name="NeuClear.org" href="http://neuclear.org/"/>
<item name="Talk.org" href="http://talk.org"/>
<item name="SourceForge" href="http://sourceforge.net/projects/neuclear/"/>
</links>
<menu name="NeuClear - Pay">
<item name="Front Page" href="/index.html"/>
<item name="Credits and Dependencies" href="/credits.html"/>
<item name="SourceForge" href="http://sourceforge.net/projects/neuclear/"/>
</menu>
</body>
</project>
|
|
From: <pe...@us...> - 2003-09-22 20:10:15
|
Update of /cvsroot/neuclear/neuclear-pay/xdocs/images In directory sc8-pr-cvs1:/tmp/cvs-serv15990/xdocs/images Added Files: logo.gif logo.png neuclearflat100x100.png neuclearicon.png Log Message: Added further minor project documentation. --- NEW FILE: logo.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: logo.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: neuclearflat100x100.png --- (This appears to be a binary file; contents omitted.) --- NEW FILE: neuclearicon.png --- (This appears to be a binary file; contents omitted.) |
|
From: <pe...@us...> - 2003-09-22 19:58:14
|
Update of /cvsroot/neuclear/neuclear-pay
In directory sc8-pr-cvs1:/tmp/cvs-serv12972
Modified Files:
project.xml
Log Message:
Updated project with new sourceforge project details.
Index: project.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/project.xml,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** project.xml 20 Sep 2003 23:12:39 -0000 1.1.1.1
--- project.xml 22 Sep 2003 19:58:11 -0000 1.2
***************
*** 22,29 ****
<repository>
<connection>
! scm:cvs:pserver:ano...@cv...:/cvsroot/neudist:neuclear-pay
</connection>
<url>
! http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/neudist/neuclear-pay/
</url>
</repository>
--- 22,29 ----
<repository>
<connection>
! scm:cvs:pserver:ano...@cv...:/cvsroot/neuclear:neuclear-pay
</connection>
<url>
! http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/neuclear/neuclear-pay/
</url>
</repository>
***************
*** 31,48 ****
<siteAddress>neuclear.org</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/pay/</siteDirectory>
! <issueTrackingUrl>http://neudist.org:8080/jira/secure/BrowseProject.jspa</issueTrackingUrl>
<mailingLists>
<mailingList>
! <name>NeuDist Announce</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neudist-announce</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neudist-announce</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neudist-announce</archive>
</mailingList>
<mailingList>
! <name>NeuDist Discuss</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neudist-discuss</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neudist-discuss</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neudist-discuss</archive>
</mailingList>
</mailingLists>
--- 31,54 ----
<siteAddress>neuclear.org</siteAddress>
<siteDirectory>/home/sites/neuclear.org/public_html/pay/</siteDirectory>
! <issueTrackingUrl>http://devone.veraxpay.com:9090/</issueTrackingUrl>
<mailingLists>
<mailingList>
! <name>NeuClear Announce</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-announce</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-announce</archive>
</mailingList>
<mailingList>
! <name>NeuClear General</name>
! <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</subscribe>
! <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-general</unsubscribe>
! <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-general</archive>
</mailingList>
+ <mailingList>
+ <name>NeuClear Develop</name>
+ <subscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</subscribe>
+ <unsubscribe>http://lists.sourceforge.net/lists/listinfo/neuclear-develop</unsubscribe>
+ <archive>http://www.geocrawler.com/redir-sf.php3?list=neuclear-develop</archive>
+ </mailingList>
</mailingLists>
|
|
From: <pe...@us...> - 2003-09-22 19:51:17
|
Update of /cvsroot/neuclear/neuclear-pay/xdocs/images In directory sc8-pr-cvs1:/tmp/cvs-serv11262/xdocs/images Log Message: Directory /cvsroot/neuclear/neuclear-pay/xdocs/images added to the repository |
|
From: <pe...@us...> - 2003-09-22 19:50:36
|
Update of /cvsroot/neuclear/neuclear-pay/xdocs In directory sc8-pr-cvs1:/tmp/cvs-serv11039/xdocs Log Message: Directory /cvsroot/neuclear/neuclear-pay/xdocs added to the repository |
|
From: <pe...@us...> - 2003-09-22 19:24:37
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer
In directory sc8-pr-cvs1:/tmp/cvs-serv4908/src/java/org/neuclear/contracts/transfer
Modified Files:
Asset.java Transfer.java
Log Message:
More fixes throughout to problems caused by renaming.
Index: Asset.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer/Asset.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Asset.java 19 Sep 2003 14:41:40 -0000 1.1.1.1
--- Asset.java 22 Sep 2003 19:24:01 -0000 1.2
***************
*** 2,5 ****
--- 2,8 ----
* $Id$
* $Log$
+ * Revision 1.2 2003/09/22 19:24:01 pelle
+ * More fixes throughout to problems caused by renaming.
+ *
* Revision 1.1.1.1 2003/09/19 14:41:40 pelle
* First import into the neuclear project. This was originally under the SF neudist
***************
*** 55,68 ****
import org.neuclear.id.NamedObject;
import org.neuclear.receiver.Receiver;
! import org.neuclear.utils.NeudistException;
public class Asset extends NamedObject implements Receiver {
! public Asset(String name,String service, String interactive,String description) {//TODO Add validity fields
! super(name, TAG_NAME,NS_NSASSET);
! Element root=getElement();
! root.addElement(DocumentHelper.createQName("Description",NS_NSASSET)).addText(description);
! root.addAttribute(DocumentHelper.createQName("service",NS_NSASSET),service);
! root.addAttribute(DocumentHelper.createQName("interactive",NS_NSASSET),interactive);
--- 58,71 ----
import org.neuclear.id.NamedObject;
import org.neuclear.receiver.Receiver;
! import org.neudist.utils.NeudistException;
public class Asset extends NamedObject implements Receiver {
! public Asset(String name, String service, String interactive, String description) {//TODO Add validity fields
! super(name, TAG_NAME, NS_NSASSET);
! Element root = getElement();
! root.addElement(DocumentHelper.createQName("Description", NS_NSASSET)).addText(description);
! root.addAttribute(DocumentHelper.createQName("service", NS_NSASSET), service);
! root.addAttribute(DocumentHelper.createQName("interactive", NS_NSASSET), interactive);
***************
*** 74,92 ****
public String getTagName() {
! return TAG_NAME;
! }
! /**
! * @return the XML NameSpace object
! */
! public Namespace getNS() {
! return NS_NSASSET;
! }
! public String getInteractiveURL() {
! return getElement().attributeValue(DocumentHelper.createQName("interactive",NS_NSASSET));
! }
public String getServiceURL() {
! return getElement().attributeValue(DocumentHelper.createQName("service",NS_NSASSET));
}
--- 77,96 ----
public String getTagName() {
! return TAG_NAME;
! }
! /**
! * @return the XML NameSpace object
! */
! public Namespace getNS() {
! return NS_NSASSET;
! }
!
! public String getInteractiveURL() {
! return getElement().attributeValue(DocumentHelper.createQName("interactive", NS_NSASSET));
! }
public String getServiceURL() {
! return getElement().attributeValue(DocumentHelper.createQName("service", NS_NSASSET));
}
***************
*** 95,101 ****
}
! private static final String TAG_NAME="Asset";
! public static final String URI_NSASSET="http://neuclear.org/neu/nsasset";
! public static final Namespace NS_NSASSET=DocumentHelper.createNamespace("nsasset",URI_NSASSET);
}
--- 99,105 ----
}
! private static final String TAG_NAME = "Asset";
! public static final String URI_NSASSET = "http://neuclear.org/neu/nsasset";
! public static final Namespace NS_NSASSET = DocumentHelper.createNamespace("nsasset", URI_NSASSET);
}
Index: Transfer.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/transfer/Transfer.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** Transfer.java 19 Sep 2003 14:41:42 -0000 1.1.1.1
--- Transfer.java 22 Sep 2003 19:24:01 -0000 1.2
***************
*** 2,5 ****
--- 2,8 ----
* $Id$
* $Log$
+ * Revision 1.2 2003/09/22 19:24:01 pelle
+ * More fixes throughout to problems caused by renaming.
+ *
* Revision 1.1.1.1 2003/09/19 14:41:42 pelle
* First import into the neuclear project. This was originally under the SF neudist
***************
*** 37,55 ****
import org.dom4j.Element;
import org.dom4j.Namespace;
- import org.neuclear.crypto.CryptoTools;
import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
! import org.neuclear.utils.NeudistException;
import java.util.Date;
! public class Transfer extends NamedObject{
! public Transfer(String userNameSpace,String recipient,String assetType,double amount) {//TODO Add validity fields
! super(createUniqueTransferName(userNameSpace,recipient), DocumentHelper.createQName(TAG_NAME,NS_NSASSET));
! Element root=getElement();
! root.addElement(DocumentHelper.createQName("Recipient",NS_NSASSET)).addText(recipient);
! root.addElement(DocumentHelper.createQName("AssetType",NS_NSASSET)).addText(assetType);
! root.addElement(DocumentHelper.createQName("Amount",NS_NSASSET)).addText(Double.toString(amount));
--- 40,58 ----
import org.dom4j.Element;
import org.dom4j.Namespace;
import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
! import org.neudist.crypto.CryptoTools;
! import org.neudist.utils.NeudistException;
import java.util.Date;
! public class Transfer extends NamedObject {
! public Transfer(String userNameSpace, String recipient, String assetType, double amount) {//TODO Add validity fields
! super(createUniqueTransferName(userNameSpace, recipient), DocumentHelper.createQName(TAG_NAME, NS_NSASSET));
! Element root = getElement();
! root.addElement(DocumentHelper.createQName("Recipient", NS_NSASSET)).addText(recipient);
! root.addElement(DocumentHelper.createQName("AssetType", NS_NSASSET)).addText(assetType);
! root.addElement(DocumentHelper.createQName("Amount", NS_NSASSET)).addText(Double.toString(amount));
***************
*** 60,79 ****
}
! private static String createUniqueTransferName(String userNameSpace,String reqNameSpace) {
// Yeah, yeah there are better ways to do this
! String ms=new Long(new Date().getTime()).toString();
! byte ticketsrc[]=new byte[ms.length()+reqNameSpace.length()];
! System.arraycopy(ms.getBytes(),0,ticketsrc,0,ms.length());
! System.arraycopy(reqNameSpace.getBytes(),0,ticketsrc,ms.length(),reqNameSpace.length());
! String ticket=CryptoTools.formatAsURLSafe(CryptoTools.digest256(ticketsrc));
//Lets reuse ticketsrc for memory reasons
! int offset=ms.length()+1;
if (reqNameSpace.startsWith("neu://"))
! offset+=5;
! for (int i=offset;i<ticketsrc.length;i++) {
! if (ticketsrc[i]==(byte)'/')
! ticketsrc[i]=(byte)'.';
}
/*
--- 63,82 ----
}
! private static String createUniqueTransferName(String userNameSpace, String reqNameSpace) {
// Yeah, yeah there are better ways to do this
! String ms = new Long(new Date().getTime()).toString();
! byte ticketsrc[] = new byte[ms.length() + reqNameSpace.length()];
! System.arraycopy(ms.getBytes(), 0, ticketsrc, 0, ms.length());
! System.arraycopy(reqNameSpace.getBytes(), 0, ticketsrc, ms.length(), reqNameSpace.length());
! String ticket = CryptoTools.formatAsURLSafe(CryptoTools.digest256(ticketsrc));
//Lets reuse ticketsrc for memory reasons
! int offset = ms.length() + 1;
if (reqNameSpace.startsWith("neu://"))
! offset += 5;
! for (int i = offset; i < ticketsrc.length; i++) {
! if (ticketsrc[i] == (byte) '/')
! ticketsrc[i] = (byte) '.';
}
/*
***************
*** 83,113 ****
System.arraycopy(ticket,0,ticketName,userNameSpace.length()+1,ticket.length);
*/
! return userNameSpace+'/'+new String(ticketsrc,offset,ticketsrc.length-offset)+'.'+ticket;
}
public String getTagName() {
! return TAG_NAME;
! }
- /**
- * @return the XML NameSpace object
- */
- public Namespace getNS() {
- return NS_NSASSET;
- }
public String getAssetType() {
! return getElement().attributeValue(DocumentHelper.createQName("AssetType",NS_NSASSET));
}
/**
* Perform this Transfer
* @throws NeudistException
*/
! public void performTransfer() throws NeudistException{
! Asset asset=(Asset)NamedObjectFactory.fetchNamedObject(getAssetType());
asset.receive(this);
}
! private static final String TAG_NAME="TransferRequest";
! public static final String URI_NSASSET="http://neuclear.org/neu/nsasset";
! public static final Namespace NS_NSASSET=DocumentHelper.createNamespace("nsasset",URI_NSASSET);
}
--- 86,119 ----
System.arraycopy(ticket,0,ticketName,userNameSpace.length()+1,ticket.length);
*/
! return userNameSpace + '/' + new String(ticketsrc, offset, ticketsrc.length - offset) + '.' + ticket;
}
+
public String getTagName() {
! return TAG_NAME;
! }
!
! /**
! * @return the XML NameSpace object
! */
! public Namespace getNS() {
! return NS_NSASSET;
! }
public String getAssetType() {
! return getElement().attributeValue(DocumentHelper.createQName("AssetType", NS_NSASSET));
}
+
/**
* Perform this Transfer
* @throws NeudistException
*/
! public void performTransfer() throws NeudistException {
! Asset asset = (Asset) NamedObjectFactory.fetchNamedObject(getAssetType());
asset.receive(this);
}
! private static final String TAG_NAME = "TransferRequest";
! public static final String URI_NSASSET = "http://neuclear.org/neu/nsasset";
! public static final Namespace NS_NSASSET = DocumentHelper.createNamespace("nsasset", URI_NSASSET);
}
|
|
From: <pe...@us...> - 2003-09-22 19:24:37
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/resolver
In directory sc8-pr-cvs1:/tmp/cvs-serv4908/src/java/org/neuclear/id/resolver
Modified Files:
NSResolver.java
Log Message:
More fixes throughout to problems caused by renaming.
Index: NSResolver.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/resolver/NSResolver.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** NSResolver.java 19 Sep 2003 14:41:09 -0000 1.1.1.1
--- NSResolver.java 22 Sep 2003 19:24:01 -0000 1.2
***************
*** 7,11 ****
import org.neuclear.id.verifier.NSVerifier;
import org.neuclear.source.Source;
! import org.neuclear.utils.NeudistException;
import java.security.PublicKey;
--- 7,11 ----
import org.neuclear.id.verifier.NSVerifier;
import org.neuclear.source.Source;
! import org.neudist.utils.NeudistException;
import java.security.PublicKey;
***************
*** 15,53 ****
*/
public final class NSResolver {
! private static final NSCache NSCACHE=NSCache.make();
! public static final String NSROOTSTORE="http://repository.neuclear.org";
/**
! * Retrieves the NameSpace object of the given name
! * defaultstore for the given namespace.
! * This is guaranteed to be valid as it checks the signatures on each level.
! * @param name
! * @return
! */
! public final static NameSpace resolveNameSpace(String name) throws NeudistException,InvalidNameSpaceException{
! NameSpace ns=NSCACHE.fetchCached(name);
! if (ns!=null)
! return ns;
! String parentname=NSTools.getParentNSURI(name);
! String store=NSROOTSTORE;
! boolean isRootlevel=parentname==null||parentname.equals("neu://");
! NameSpace parent=null;
! if (!isRootlevel) {
! parent=resolveNameSpace(parentname);
! store=parent.getRepository();
! }
! // fetches NameSpace from parent NameSpace's Default Store
! ns=(NameSpace)Source.getInstance().fetch(store,name);
! if (ns==null)
! throw new NeudistException("NameSpace: "+name+" was not resolved");
! PublicKey parentkey=(isRootlevel)?NSVerifier.getRootPK():parent.getAllowed();
! if (!ns.verifySignature(parentkey))
! throw new InvalidNameSpaceException("NameSpace: "+name +" not allowed in "+parentname);
! NSCACHE.cache(ns);
! return ns; //This may not be null
! }
}
--- 15,53 ----
*/
public final class NSResolver {
! private static final NSCache NSCACHE = NSCache.make();
! public static final String NSROOTSTORE = "http://repository.neuclear.org";
/**
! * Retrieves the NameSpace object of the given name
! * defaultstore for the given namespace.
! * This is guaranteed to be valid as it checks the signatures on each level.
! * @param name
! * @return
! */
! public final static NameSpace resolveNameSpace(String name) throws NeudistException, InvalidNameSpaceException {
! NameSpace ns = NSCACHE.fetchCached(name);
! if (ns != null)
! return ns;
! String parentname = NSTools.getParentNSURI(name);
! String store = NSROOTSTORE;
! boolean isRootlevel = parentname == null || parentname.equals("neu://");
! NameSpace parent = null;
! if (!isRootlevel) {
! parent = resolveNameSpace(parentname);
! store = parent.getRepository();
! }
! // fetches NameSpace from parent NameSpace's Default Store
! ns = (NameSpace) Source.getInstance().fetch(store, name);
! if (ns == null)
! throw new NeudistException("NameSpace: " + name + " was not resolved");
! PublicKey parentkey = (isRootlevel) ? NSVerifier.getRootPK() : parent.getAllowed();
! if (!ns.verifySignature(parentkey))
! throw new InvalidNameSpaceException("NameSpace: " + name + " not allowed in " + parentname);
! NSCACHE.cache(ns);
! return ns; //This may not be null
! }
}
|
|
From: <pe...@us...> - 2003-09-22 19:24:37
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/nsauth
In directory sc8-pr-cvs1:/tmp/cvs-serv4908/src/java/org/neuclear/contracts/nsauth
Modified Files:
AuthenticationTicket.java
Log Message:
More fixes throughout to problems caused by renaming.
Index: AuthenticationTicket.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/contracts/nsauth/AuthenticationTicket.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** AuthenticationTicket.java 19 Sep 2003 14:41:44 -0000 1.1.1.1
--- AuthenticationTicket.java 22 Sep 2003 19:24:00 -0000 1.2
***************
*** 12,16 ****
import org.dom4j.Element;
import org.dom4j.Namespace;
- import org.neuclear.crypto.CryptoTools;
import org.neuclear.id.NameSpace;
import org.neuclear.id.NamedObject;
--- 12,15 ----
***************
*** 18,23 ****
import org.neuclear.id.signrequest.SignatureRequest;
import org.neuclear.time.TimeTools;
! import org.neuclear.utils.NeudistException;
! import org.neuclear.utils.Utility;
import java.security.PrivateKey;
--- 17,23 ----
import org.neuclear.id.signrequest.SignatureRequest;
import org.neuclear.time.TimeTools;
! import org.neudist.crypto.CryptoTools;
! import org.neudist.utils.NeudistException;
! import org.neudist.utils.Utility;
import java.security.PrivateKey;
***************
*** 44,59 ****
* @param siteurl URL for interactive signing service to send user to after signing.
*/
! private AuthenticationTicket(String user,String requester,long validity,String siteurl) throws NeudistException {
! super(createUniqueTicketName(user,requester),AuthenticationTicket.TAG_NAME,AuthenticationTicket.NS_NSAUTH);
! NamedObject userns=NamedObjectFactory.fetchNamedObject(user);
! if (userns==null||(!(userns instanceof NameSpace))||(Utility.isEmpty(((NameSpace)userns).getSigner())))
! throw new NeudistException("The provided namespace: "+user+" doesnt exist or doesnt allow interactive signing");
! Element root=getElement();
! if (validity>=0)
! root.addAttribute(DocumentHelper.createQName("validto",NS_NSAUTH),TimeTools.formatTimeStamp(new Timestamp(new Date().getTime()+validity)));
if (!Utility.isEmpty(siteurl))
! root.addAttribute(DocumentHelper.createQName("href",NS_NSAUTH),siteurl);
}
--- 44,59 ----
* @param siteurl URL for interactive signing service to send user to after signing.
*/
! private AuthenticationTicket(String user, String requester, long validity, String siteurl) throws NeudistException {
! super(createUniqueTicketName(user, requester), AuthenticationTicket.TAG_NAME, AuthenticationTicket.NS_NSAUTH);
! NamedObject userns = NamedObjectFactory.fetchNamedObject(user);
! if (userns == null || (!(userns instanceof NameSpace)) || (Utility.isEmpty(((NameSpace) userns).getSigner())))
! throw new NeudistException("The provided namespace: " + user + " doesnt exist or doesnt allow interactive signing");
! Element root = getElement();
! if (validity >= 0)
! root.addAttribute(DocumentHelper.createQName("validto", NS_NSAUTH), TimeTools.formatTimeStamp(new Timestamp(new Date().getTime() + validity)));
if (!Utility.isEmpty(siteurl))
! root.addAttribute(DocumentHelper.createQName("href", NS_NSAUTH), siteurl);
}
***************
*** 67,75 ****
}
! public static SignatureRequest createAuthenticationRequest(String user, String requester,long validity, String siteurl, String targeturl,PrivateKey signer) throws NeudistException {
! AuthenticationTicket ticket=new AuthenticationTicket(user,requester,validity,siteurl);
! return SignatureRequest.createRequest(requester,targeturl,ticket,signer);
}
/**
* This is just used to create a unique ticket for use by the ticket
--- 67,76 ----
}
! public static SignatureRequest createAuthenticationRequest(String user, String requester, long validity, String siteurl, String targeturl, PrivateKey signer) throws NeudistException {
! AuthenticationTicket ticket = new AuthenticationTicket(user, requester, validity, siteurl);
! return SignatureRequest.createRequest(requester, targeturl, ticket, signer);
}
+
/**
* This is just used to create a unique ticket for use by the ticket
***************
*** 78,97 ****
* @return
*/
! private static String createUniqueTicketName(String userNameSpace,String reqNameSpace) {
// Yeah, yeah there are better ways to do this
! String ms=new Long(new Date().getTime()).toString();
! byte ticketsrc[]=new byte[ms.length()+reqNameSpace.length()];
! System.arraycopy(ms.getBytes(),0,ticketsrc,0,ms.length());
! System.arraycopy(reqNameSpace.getBytes(),0,ticketsrc,ms.length(),reqNameSpace.length());
! String ticket=CryptoTools.formatAsURLSafe(CryptoTools.digest256(ticketsrc));
//Lets reuse ticketsrc for memory reasons
! int offset=ms.length()+1;
if (reqNameSpace.startsWith("neu://"))
! offset+=5;
! for (int i=offset;i<ticketsrc.length;i++) {
! if (ticketsrc[i]==(byte)'/')
! ticketsrc[i]=(byte)'.';
}
/*
--- 79,98 ----
* @return
*/
! private static String createUniqueTicketName(String userNameSpace, String reqNameSpace) {
// Yeah, yeah there are better ways to do this
! String ms = new Long(new Date().getTime()).toString();
! byte ticketsrc[] = new byte[ms.length() + reqNameSpace.length()];
! System.arraycopy(ms.getBytes(), 0, ticketsrc, 0, ms.length());
! System.arraycopy(reqNameSpace.getBytes(), 0, ticketsrc, ms.length(), reqNameSpace.length());
! String ticket = CryptoTools.formatAsURLSafe(CryptoTools.digest256(ticketsrc));
//Lets reuse ticketsrc for memory reasons
! int offset = ms.length() + 1;
if (reqNameSpace.startsWith("neu://"))
! offset += 5;
! for (int i = offset; i < ticketsrc.length; i++) {
! if (ticketsrc[i] == (byte) '/')
! ticketsrc[i] = (byte) '.';
}
/*
***************
*** 101,105 ****
System.arraycopy(ticket,0,ticketName,userNameSpace.length()+1,ticket.length);
*/
! return userNameSpace+'/'+new String(ticketsrc,offset,ticketsrc.length-offset)+'.'+ticket;
}
--- 102,106 ----
System.arraycopy(ticket,0,ticketName,userNameSpace.length()+1,ticket.length);
*/
! return userNameSpace + '/' + new String(ticketsrc, offset, ticketsrc.length - offset) + '.' + ticket;
}
***************
*** 110,116 ****
*/
public Timestamp getValidTo() throws NeudistException {
! String ts=getElement().attributeValue(DocumentHelper.createQName("validto",NS_NSAUTH));
return TimeTools.parseTimeStamp(ts);
}
/**
* The Site URL of the site requesting authentication.
--- 111,118 ----
*/
public Timestamp getValidTo() throws NeudistException {
! String ts = getElement().attributeValue(DocumentHelper.createQName("validto", NS_NSAUTH));
return TimeTools.parseTimeStamp(ts);
}
+
/**
* The Site URL of the site requesting authentication.
***************
*** 118,126 ****
*/
public String getSiteHref() {
! return getElement().attributeValue(DocumentHelper.createQName("href",NS_NSAUTH));
}
public String getTagName() {
! return TAG_NAME;
! }
/**
--- 120,129 ----
*/
public String getSiteHref() {
! return getElement().attributeValue(DocumentHelper.createQName("href", NS_NSAUTH));
}
+
public String getTagName() {
! return TAG_NAME;
! }
/**
***************
*** 146,151 ****
*/
! private static final String TAG_NAME="AuthenticationTicket";
! public static final String URI_NSAUTH="http://neuclear.org/neu/nsauth";
! public static final Namespace NS_NSAUTH=DocumentHelper.createNamespace("nsauth",URI_NSAUTH);
}
--- 149,154 ----
*/
! private static final String TAG_NAME = "AuthenticationTicket";
! public static final String URI_NSAUTH = "http://neuclear.org/neu/nsauth";
! public static final Namespace NS_NSAUTH = DocumentHelper.createNamespace("nsauth", URI_NSAUTH);
}
|