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: <bug...@ve...> - 2004-04-05 13:55:41
|
Message:
The following issue has been closed.
Resolver: Pelle Braendgaard
Date: Mon, 5 Apr 2004 6:52 AM
Just created a copy of the element. Now it works fine.
---------------------------------------------------------------------
View the issue:
http://jira.neuclear.org//browse/PAY-22
Here is an overview of the issue:
---------------------------------------------------------------------
Key: PAY-22
Summary: ReceiptObjects not Verified
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: NeuClear Payments
Components:
Data Objects
Fix Fors:
0.3
Versions:
0.3
Assignee: Pelle Braendgaard
Reporter: Pelle Braendgaard
Created: Mon, 5 Apr 2004 6:49 AM
Updated: Mon, 5 Apr 2004 6:52 AM
Description:
When verifying ReceiptObjects it doesn't verify the object, which most likely has to do with the two signatures.
It throws the following exception in TransferReceiptBuilderTest:
org.neuclear.id.InvalidNamedObjectException: Unnamed object failed Signature verification is an invalid Identity
at org.neuclear.id.SignedNamedCore.readUnnamed(SignedNamedCore.java:389)
at org.neuclear.id.SignedNamedCore.read(SignedNamedCore.java:339)
at org.neuclear.id.verifier.VerifyingReader.read(VerifyingReader.java:201)
at org.neuclear.asset.orders.TransferGlobals.parseEmbedded(TransferGlobals.java:279)
at org.neuclear.asset.orders.TransferReceipt$Reader.read(TransferReceipt.java:48)
at org.neuclear.id.verifier.VerifyingReader.read(VerifyingReader.java:201)
at org.neuclear.id.builders.Builder.convert(Builder.java:40)
at org.neuclear.id.builders.Builder.convert(Builder.java:75)
at org.neuclear.tests.AbstractObjectCreationTest.testCreateObject(AbstractObjectCreationTest.java:27)
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.neuclear.org//secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <bug...@ve...> - 2004-04-05 13:50:48
|
Message: Work on this issue has been started by Pelle Braendgaard (mailto:pe...@ve...) --------------------------------------------------------------------- View the issue: http://jira.neuclear.org//browse/PAY-22 Here is an overview of the issue: --------------------------------------------------------------------- Key: PAY-22 Summary: ReceiptObjects not Verified Type: Bug Status: In Progress Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: NeuClear Payments Components: Data Objects Fix Fors: 0.3 Versions: 0.3 Assignee: Pelle Braendgaard Reporter: Pelle Braendgaard Created: Mon, 5 Apr 2004 6:49 AM Updated: Mon, 5 Apr 2004 6:49 AM Description: When verifying ReceiptObjects it doesn't verify the object, which most likely has to do with the two signatures. It throws the following exception in TransferReceiptBuilderTest: org.neuclear.id.InvalidNamedObjectException: Unnamed object failed Signature verification is an invalid Identity at org.neuclear.id.SignedNamedCore.readUnnamed(SignedNamedCore.java:389) at org.neuclear.id.SignedNamedCore.read(SignedNamedCore.java:339) at org.neuclear.id.verifier.VerifyingReader.read(VerifyingReader.java:201) at org.neuclear.asset.orders.TransferGlobals.parseEmbedded(TransferGlobals.java:279) at org.neuclear.asset.orders.TransferReceipt$Reader.read(TransferReceipt.java:48) at org.neuclear.id.verifier.VerifyingReader.read(VerifyingReader.java:201) at org.neuclear.id.builders.Builder.convert(Builder.java:40) at org.neuclear.id.builders.Builder.convert(Builder.java:75) at org.neuclear.tests.AbstractObjectCreationTest.testCreateObject(AbstractObjectCreationTest.java:27) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.neuclear.org//secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <bug...@ve...> - 2004-04-05 13:50:45
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://jira.neuclear.org//browse/PAY-22 Here is an overview of the issue: --------------------------------------------------------------------- Key: PAY-22 Summary: ReceiptObjects not Verified Type: Bug Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: NeuClear Payments Components: Data Objects Fix Fors: 0.3 Versions: 0.3 Assignee: Pelle Braendgaard Reporter: Pelle Braendgaard Created: Mon, 5 Apr 2004 6:49 AM Updated: Mon, 5 Apr 2004 6:49 AM Description: When verifying ReceiptObjects it doesn't verify the object, which most likely has to do with the two signatures. It throws the following exception in TransferReceiptBuilderTest: org.neuclear.id.InvalidNamedObjectException: Unnamed object failed Signature verification is an invalid Identity at org.neuclear.id.SignedNamedCore.readUnnamed(SignedNamedCore.java:389) at org.neuclear.id.SignedNamedCore.read(SignedNamedCore.java:339) at org.neuclear.id.verifier.VerifyingReader.read(VerifyingReader.java:201) at org.neuclear.asset.orders.TransferGlobals.parseEmbedded(TransferGlobals.java:279) at org.neuclear.asset.orders.TransferReceipt$Reader.read(TransferReceipt.java:48) at org.neuclear.id.verifier.VerifyingReader.read(VerifyingReader.java:201) at org.neuclear.id.builders.Builder.convert(Builder.java:40) at org.neuclear.id.builders.Builder.convert(Builder.java:75) at org.neuclear.tests.AbstractObjectCreationTest.testCreateObject(AbstractObjectCreationTest.java:27) --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.neuclear.org//secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <bug...@ve...> - 2004-04-02 23:18:35
|
Message:
The following issue has been closed.
Resolver: Pelle Braendgaard
Date: Fri, 2 Apr 2004 3:17 PM
Done and tests are passed
---------------------------------------------------------------------
View the issue:
http://jira.neuclear.org//browse/PAY-10
Here is an overview of the issue:
---------------------------------------------------------------------
Key: PAY-10
Summary: Create Unit Tests for TransferOrder
Type: Test Case
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: NeuClear Payments
Components:
Data Objects
Fix Fors:
0.3
Versions:
0.3
Assignee: Pelle Braendgaard
Reporter: Pelle Braendgaard
Created: Wed, 31 Mar 2004 2:59 PM
Updated: Fri, 2 Apr 2004 3:17 PM
Description:
Test the creation and validation of TransferOrder.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.neuclear.org//secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <bug...@ve...> - 2004-04-02 23:18:35
|
Message:
The following issue has been closed.
Resolver: Pelle Braendgaard
Date: Fri, 2 Apr 2004 3:17 PM
Done
---------------------------------------------------------------------
View the issue:
http://jira.neuclear.org//browse/PAY-11
Here is an overview of the issue:
---------------------------------------------------------------------
Key: PAY-11
Summary: Create Unit Tests for TransferReceipt
Type: Test Case
Status: Closed
Priority: Major
Resolution: FIXED
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: NeuClear Payments
Components:
Data Objects
Fix Fors:
0.3
Versions:
0.3
Assignee: Pelle Braendgaard
Reporter: Pelle Braendgaard
Created: Wed, 31 Mar 2004 2:59 PM
Updated: Fri, 2 Apr 2004 3:17 PM
Description:
Test the creation and validation of TransferReceipt.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.neuclear.org//secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <bug...@ve...> - 2004-04-02 23:18:34
|
Message: The following issue has been closed. --------------------------------------------------------------------- View the issue: http://jira.neuclear.org//browse/PAY-21 Here is an overview of the issue: --------------------------------------------------------------------- Key: PAY-21 Summary: Create Test Case for Asset Type: Test Case Status: Closed Priority: Major Resolution: FIXED Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: NeuClear Payments Components: Data Objects Fix Fors: 0.3 Versions: 0.3 Assignee: Pelle Braendgaard Reporter: Pelle Braendgaard Created: Fri, 2 Apr 2004 3:12 PM Updated: Fri, 2 Apr 2004 3:17 PM Description: Test the creation of Assets via the AssetBuilder. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.neuclear.org//secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <bug...@ve...> - 2004-04-02 23:18:34
|
The following issue has been updated:
Updater: Pelle Braendgaard (mailto:pe...@ve...)
Date: Fri, 2 Apr 2004 3:16 PM
Changes:
Version changed to 0.3
Version changed from 0.4
Fix Version changed to 0.3
Fix Version changed from 0.4
---------------------------------------------------------------------
For a full history of the issue, see:
http://jira.neuclear.org//browse/PAY-21?page=history
---------------------------------------------------------------------
View the issue:
http://jira.neuclear.org//browse/PAY-21
Here is an overview of the issue:
---------------------------------------------------------------------
Key: PAY-21
Summary: Create Test Case for Asset
Type: Test Case
Status: Reopened
Priority: Major
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: NeuClear Payments
Components:
Data Objects
Fix Fors:
0.3
Versions:
0.3
Assignee: Pelle Braendgaard
Reporter: Pelle Braendgaard
Created: Fri, 2 Apr 2004 3:12 PM
Updated: Fri, 2 Apr 2004 3:16 PM
Description:
Test the creation of Assets via the AssetBuilder.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.neuclear.org//secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|
|
From: <bug...@ve...> - 2004-04-02 23:18:33
|
Message: The following issue has been reopened. --------------------------------------------------------------------- View the issue: http://jira.neuclear.org//browse/PAY-21 Here is an overview of the issue: --------------------------------------------------------------------- Key: PAY-21 Summary: Create Test Case for Asset Type: Test Case Status: Reopened Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: NeuClear Payments Components: Data Objects Fix Fors: 0.3 Versions: 0.3 Assignee: Pelle Braendgaard Reporter: Pelle Braendgaard Created: Fri, 2 Apr 2004 3:12 PM Updated: Fri, 2 Apr 2004 3:16 PM Description: Test the creation of Assets via the AssetBuilder. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.neuclear.org//secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:17:15
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4299/src/java/org/neuclear/id Modified Files: Signatory.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: Signatory.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/Signatory.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Signatory.java 1 Apr 2004 23:19:49 -0000 1.1 --- Signatory.java 2 Apr 2004 23:05:03 -0000 1.2 *************** *** 2,5 **** --- 2,9 ---- * $Id$ * $Log$ + * Revision 1.2 2004/04/02 23:05:03 pelle + * Got TransferOrder and Builder working with their test cases. + * Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + * * Revision 1.1 2004/04/01 23:19:49 pelle * Split Identity into Signatory and Identity class. *************** *** 326,329 **** --- 330,334 ---- import org.neuclear.commons.crypto.Base32; import org.neuclear.commons.crypto.CryptoTools; + import org.neuclear.commons.crypto.keyresolvers.PublicKeyCache; import org.neuclear.id.resolver.Resolver; *************** *** 357,362 **** */ public Signatory(final PublicKey pub) { - this.pub = pub; this.id = Base32.encode(CryptoTools.digest(pub.getEncoded())); } --- 362,368 ---- */ public Signatory(final PublicKey pub) { this.id = Base32.encode(CryptoTools.digest(pub.getEncoded())); + this.pub = pub; + PublicKeyCache.cachePublicKey(pub); } |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:17:15
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/resolver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4299/src/java/org/neuclear/id/resolver Modified Files: Resolver.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: Resolver.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/resolver/Resolver.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Resolver.java 2 Apr 2004 17:33:31 -0000 1.2 --- Resolver.java 2 Apr 2004 23:05:02 -0000 1.3 *************** *** 51,79 **** */ public final static SignedNamedObject resolve(final String name) throws NameResolutionException, InvalidNamedObjectException { - SignedNamedObject obj = NSCACHE.fetchCached(name); - if (obj != null) - return obj; ! /* ! if (name.startsWith("neu:")) { ! ! final String parentname = NSTools.getSignatoryURI(name); ! ! String store = NSTools.isHttpScheme(name); ! if (store == null) { ! final Identity parent = resolveIdentity(parentname); ! store = parent.getRepository(); ! } ! try { ! obj = Source.getInstance().fetch(store, name); ! } catch (SourceException e) { ! throw new NameResolutionException(name,e.getLocalizedMessage()); ! } ! if (obj == null) ! throw new NameResolutionException(name); ! NSCACHE.cache(obj); ! return obj; //This may not be null } ! */ try { --- 51,63 ---- */ public final static SignedNamedObject resolve(final String name) throws NameResolutionException, InvalidNamedObjectException { ! // If name is a hash check the cache ! if (name.length() == 32 || name.length() == 37 || name.length() == 38 || name.length() == 69) { ! System.out.println("Fetching Cached"); ! SignedNamedObject obj = NSCACHE.fetchCached(cleanName(name)); ! if (obj != null) ! return obj; } ! try { *************** *** 96,100 **** private static String cleanName(String name) { ! if (name.startsWith("sha:")) return name.substring(4); --- 80,88 ---- private static String cleanName(String name) { ! if (name.charAt(36) == '!') ! return name.substring(37); ! if (name.startsWith("sha1:")) ! return name.substring(5); ! if (name.startsWith("neu:")) return name.substring(4); |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:17:15
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4299/src/java/org/neuclear/id/cache Modified Files: NSCache.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: NSCache.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/cache/NSCache.java,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** NSCache.java 2 Apr 2004 17:33:31 -0000 1.10 --- NSCache.java 2 Apr 2004 23:05:02 -0000 1.11 *************** *** 1,10 **** package org.neuclear.id.cache; import org.neuclear.id.SignedNamedObject; - import java.lang.ref.WeakReference; - import java.util.HashMap; - import java.util.Map; - /** * The Idea of the NSCache is to have a quick cache of verified public NameSpaces. This is not stored, but is created from scratch --- 1,7 ---- package org.neuclear.id.cache; + import org.neuclear.commons.Cache; import org.neuclear.id.SignedNamedObject; /** * The Idea of the NSCache is to have a quick cache of verified public NameSpaces. This is not stored, but is created from scratch *************** *** 13,20 **** * This should help with both security and memory usage. */ ! public final class NSCache { ! public NSCache() { ! spaces = new HashMap(); ! } --- 10,14 ---- * This should help with both security and memory usage. */ ! public final class NSCache extends Cache { *************** *** 26,41 **** */ public SignedNamedObject fetchCached(final String name) { ! final WeakReference ref = (WeakReference) spaces.get(name); ! if (ref == null) ! return null; ! return (SignedNamedObject) ref.get(); } public SignedNamedObject cache(final SignedNamedObject obj) { ! if (!spaces.containsKey(obj.getDigest())) ! spaces.put(obj.getDigest(), new WeakReference(obj)); ! return obj; } - private final Map spaces; } --- 20,31 ---- */ public SignedNamedObject fetchCached(final String name) { ! System.out.println("Fetch:" + name); ! return (SignedNamedObject) lookup(name); } public SignedNamedObject cache(final SignedNamedObject obj) { ! System.out.println("Caching: " + obj.getDigest()); ! return (SignedNamedObject) cache(obj.getDigest(), obj); } } |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:17:15
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/builders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4299/src/java/org/neuclear/id/builders Modified Files: EmbeddedSignedObjectBuilder.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: EmbeddedSignedObjectBuilder.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/builders/EmbeddedSignedObjectBuilder.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** EmbeddedSignedObjectBuilder.java 13 Jan 2004 23:38:26 -0000 1.4 --- EmbeddedSignedObjectBuilder.java 2 Apr 2004 23:05:02 -0000 1.5 *************** *** 14,21 **** */ public class EmbeddedSignedObjectBuilder extends Builder { ! public EmbeddedSignedObjectBuilder(final QName qname, final SignedNamedObject embedded) { super(qname); try { ! getElement().add(DocumentHelper.parseText(embedded.getEncoded())); } catch (DocumentException e) { throw new RuntimeException((e)); --- 14,21 ---- */ public class EmbeddedSignedObjectBuilder extends Builder { ! public EmbeddedSignedObjectBuilder(final QName qname, final SignedNamedObject embedded) { super(qname); try { ! getElement().add(DocumentHelper.parseText(embedded.getEncoded()).getRootElement()); } catch (DocumentException e) { throw new RuntimeException((e)); |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:57
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4251/src/java/org/neuclear/commons Added Files: Cache.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. --- NEW FILE: Cache.java --- package org.neuclear.commons; import java.lang.ref.Reference; import java.lang.ref.SoftReference; import java.util.Collections; import java.util.HashMap; import java.util.Map; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: Cache.java,v 1.1 2004/04/02 23:04:44 pelle Exp $ $Log: Cache.java,v $ Revision 1.1 2004/04/02 23:04:44 pelle Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. */ /** * User: pelleb * Date: Apr 2, 2004 * Time: 10:07:43 PM */ public abstract class Cache { protected Cache() { cache = Collections.synchronizedMap(new HashMap()); } protected final Object lookup(String name) { final Reference ref = (Reference) cache.get(name); if (ref == null) return null; if (ref.isEnqueued()) { cache.remove(name); return null; } return ref.get(); } protected Object cache(final String id, final Object obj) { if (!cache.containsKey(id) || ((Reference) cache.get(id)).isEnqueued()) { cache.put(id, new SoftReference(obj)); } return obj; } private final Map cache; } |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:57
|
Update of /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/keyresolvers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4251/src/java/org/neuclear/commons/crypto/keyresolvers Modified Files: KeyResolverFactory.java PublicKeyCache.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: KeyResolverFactory.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/keyresolvers/KeyResolverFactory.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** KeyResolverFactory.java 19 Feb 2004 15:29:09 -0000 1.3 --- KeyResolverFactory.java 2 Apr 2004 23:04:44 -0000 1.4 *************** *** 23,26 **** --- 23,30 ---- $Id$ $Log$ + Revision 1.4 2004/04/02 23:04:44 pelle + Got TransferOrder and Builder working with their test cases. + Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + Revision 1.3 2004/02/19 15:29:09 pelle Various cleanups and corrections *************** *** 67,71 **** } ! public final static String DEFAULT = "org.neuclear.commons.crypto.keyresolvers.NullResolver"; private static KeyResolver instance; } --- 71,75 ---- } ! public final static String DEFAULT = "org.neuclear.commons.crypto.keyresolvers.PublicKeyCache"; private static KeyResolver instance; } Index: PublicKeyCache.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-commons/src/java/org/neuclear/commons/crypto/keyresolvers/PublicKeyCache.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** PublicKeyCache.java 1 Apr 2004 23:16:36 -0000 1.1 --- PublicKeyCache.java 2 Apr 2004 23:04:44 -0000 1.2 *************** *** 1,10 **** package org.neuclear.commons.crypto.keyresolvers; import org.neuclear.commons.crypto.CryptoTools; - import java.lang.ref.WeakReference; import java.security.PublicKey; - import java.util.HashMap; - import java.util.Map; /** --- 1,8 ---- package org.neuclear.commons.crypto.keyresolvers; + import org.neuclear.commons.Cache; import org.neuclear.commons.crypto.CryptoTools; import java.security.PublicKey; /** *************** *** 15,37 **** * To change this template use Options | File Templates. */ ! public class PublicKeyCache implements KeyResolver { ! - private PublicKeyCache() { - this.cache = new HashMap(); - } public final PublicKey resolve(String name) { ! final WeakReference ref = (WeakReference) cache.get(name); ! if (ref == null) ! return null; ! return (PublicKey) ref.get(); } ! public final void cache(final PublicKey pub) { final String keyid = CryptoTools.encodeBase32(CryptoTools.digest(pub.getEncoded())); ! if (!cache.containsKey(keyid) || ((WeakReference) cache.get(keyid)).isEnqueued()) { ! cache.put(keyid, new WeakReference(pub)); ! } } --- 13,26 ---- * To change this template use Options | File Templates. */ ! public class PublicKeyCache extends Cache implements KeyResolver { public final PublicKey resolve(String name) { ! return (PublicKey) lookup(name); } ! public final PublicKey cache(final PublicKey pub) { final String keyid = CryptoTools.encodeBase32(CryptoTools.digest(pub.getEncoded())); ! return (PublicKey) cache(keyid, pub); } *************** *** 50,54 **** } - private final Map cache; private static PublicKeyCache instance; } --- 39,42 ---- |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:49
|
Update of /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/receiver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/test/org/neuclear/asset/receiver Modified Files: PaymentReceiverTest.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: PaymentReceiverTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/receiver/PaymentReceiverTest.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** PaymentReceiverTest.java 1 Apr 2004 23:18:34 -0000 1.18 --- PaymentReceiverTest.java 2 Apr 2004 23:04:37 -0000 1.19 *************** *** 11,15 **** import org.neuclear.commons.NeuClearException; import org.neuclear.commons.crypto.signers.TestCaseSigner; - import org.neuclear.id.Identity; import org.neuclear.id.SignedNamedObject; import org.neuclear.id.receiver.Receiver; --- 11,14 ---- *************** *** 46,49 **** --- 45,52 ---- $Id$ $Log$ + Revision 1.19 2004/04/02 23:04:37 pelle + Got TransferOrder and Builder working with their test cases. + Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + Revision 1.18 2004/04/01 23:18:34 pelle Split Identity into Signatory and Identity class. *************** *** 244,250 **** } ! public final SignedNamedObject createPayments(final Identity from, final Identity to, final double amount) throws InvalidTransferException, XMLException, NeuClearException, IOException, UnsupportedEncodingException { ! final TransferOrderBuilder transfer = new TransferOrderBuilder(asset, to, new Amount(amount), "Test One"); ! return transfer.convert(from.getName(), getSigner()); } --- 247,253 ---- } ! public final SignedNamedObject createPayments(final String from, final String to, final double amount) throws InvalidTransferException, XMLException, NeuClearException, IOException, UnsupportedEncodingException { ! final TransferOrderBuilder transfer = new TransferOrderBuilder(assetName, to, new Amount(amount), "Test One"); ! return transfer.convert(from, getSigner()); } |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:49
|
Update of /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/orders/builders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/test/org/neuclear/asset/orders/builders Modified Files: TransferOrderBuilderTest.java Added Files: TransferReceiptBuilderTest.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. --- NEW FILE: TransferReceiptBuilderTest.java --- package org.neuclear.asset.orders.builders; import org.neuclear.asset.InvalidTransferException; import org.neuclear.asset.contracts.Asset; import org.neuclear.asset.contracts.builders.AssetBuilder; import org.neuclear.asset.orders.Amount; import org.neuclear.asset.orders.TransferOrder; import org.neuclear.asset.orders.TransferReceipt; import org.neuclear.commons.NeuClearException; import org.neuclear.commons.crypto.signers.NonExistingSignerException; import org.neuclear.id.SignedNamedObject; import org.neuclear.id.builders.Builder; import org.neuclear.tests.AbstractObjectCreationTest; import org.neuclear.xml.XMLException; import java.security.GeneralSecurityException; import java.util.Date; /* NeuClear Distributed Transaction Clearing Platform (C) 2003 Pelle Braendgaard This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA $Id: TransferReceiptBuilderTest.java,v 1.1 2004/04/02 23:04:36 pelle Exp $ $Log: TransferReceiptBuilderTest.java,v $ Revision 1.1 2004/04/02 23:04:36 pelle Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Revision 1.5 2004/04/02 17:56:16 pelle Added new createTestAsset() method. Revision 1.4 2004/04/01 23:18:33 pelle Split Identity into Signatory and Identity class. Identity remains a signed named object and will in the future just be used for self declared information. Signatory now contains the PublicKey etc and is NOT a signed object. Revision 1.3 2004/03/03 23:28:14 pelle Updated tests to use AbstractObjectCreationTest Revision 1.2 2004/02/18 00:13:31 pelle Many, many clean ups. I've readded Targets in a new method. Gotten rid of NamedObjectBuilder and revamped Identity and Resolvers Revision 1.1 2004/01/21 23:41:02 pelle Started the unit tests for the new payment message format. */ /** * User: pelleb * Date: Jan 21, 2004 * Time: 9:11:44 PM */ public class TransferReceiptBuilderTest extends AbstractObjectCreationTest { public TransferReceiptBuilderTest(String string) throws NeuClearException, GeneralSecurityException { super(string); asset = createTestAsset(); } protected void verifyObject(SignedNamedObject obj) throws NonExistingSignerException { assertNotNull(obj); assertTrue(obj instanceof TransferReceipt); TransferReceipt receipt = (TransferReceipt) obj; assertNotNull(receipt.getValueTime()); assertEquals(asset.getDigest(), receipt.getAsset().getDigest()); assertEquals(getSigner().getPublicKey("neu://test").getEncoded(), receipt.getSignatory().getPublicKey().getEncoded()); TransferOrder order = receipt.getOrder(); assertNotNull(order); assertEquals(asset.getDigest(), order.getAsset().getDigest()); assertEquals(getSigner().getPublicKey("neu://test").getEncoded(), order.getSignatory().getPublicKey().getEncoded()); // assertEquals(getBob().getPublicKey().getEncoded(), order.getRecipient().getSignatory().getPublicKey().getEncoded()); assertEquals("Test", order.getComment()); assertEquals(20.0, order.getAmount().getAmount(), 0); } protected Class getRequiredClass() { return TransferReceipt.class; } protected Builder createBuilder() throws NeuClearException, InvalidTransferException, XMLException { Builder builder = new TransferOrderBuilder(asset, getAlice(), new Amount(20), "Test"); // System.out.println(builder.asXML()); return new TransferReceiptBuilder((TransferOrder) builder.convert(NAME, getSigner()), new Date()); } public Asset createTestAsset() throws NeuClearException { AssetBuilder builder = new AssetBuilder("http://bux.neuclear.org", getSigner().getPublicKey("neu://test/bux"), getAlice().getPublicKey(), 2, 0); return (Asset) builder.convert(NAME, getSigner()); } private Asset asset; } Index: TransferOrderBuilderTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/orders/builders/TransferOrderBuilderTest.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TransferOrderBuilderTest.java 2 Apr 2004 17:56:16 -0000 1.5 --- TransferOrderBuilderTest.java 2 Apr 2004 23:04:36 -0000 1.6 *************** *** 35,38 **** --- 35,42 ---- $Id$ $Log$ + Revision 1.6 2004/04/02 23:04:36 pelle + Got TransferOrder and Builder working with their test cases. + Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + Revision 1.5 2004/04/02 17:56:16 pelle Added new createTestAsset() method. *************** *** 72,76 **** assertEquals(asset.getDigest(), order.getAsset().getDigest()); assertEquals(getSigner().getPublicKey("neu://test").getEncoded(), order.getSignatory().getPublicKey().getEncoded()); ! assertEquals(getBob().getPublicKey().getEncoded(), order.getRecipient().getSignatory().getPublicKey().getEncoded()); assertEquals("Test", order.getComment()); assertEquals(20.0, order.getAmount().getAmount(), 0); --- 76,80 ---- assertEquals(asset.getDigest(), order.getAsset().getDigest()); assertEquals(getSigner().getPublicKey("neu://test").getEncoded(), order.getSignatory().getPublicKey().getEncoded()); ! // assertEquals(getBob().getPublicKey().getEncoded(), order.getRecipient().getSignatory().getPublicKey().getEncoded()); assertEquals("Test", order.getComment()); assertEquals(20.0, order.getAmount().getAmount(), 0); *************** *** 82,86 **** protected Builder createBuilder() throws NeuClearException, InvalidTransferException, XMLException { ! Builder builder = new TransferOrderBuilder(asset, null, new Amount(20), "Test"); // System.out.println(builder.asXML()); return builder; --- 86,90 ---- protected Builder createBuilder() throws NeuClearException, InvalidTransferException, XMLException { ! Builder builder = new TransferOrderBuilder(asset, getAlice(), new Amount(20), "Test"); // System.out.println(builder.asXML()); return builder; |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:48
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/exchange/orders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/java/org/neuclear/exchange/orders Modified Files: ExchangeCompletionOrder.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: ExchangeCompletionOrder.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/exchange/orders/ExchangeCompletionOrder.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ExchangeCompletionOrder.java 13 Jan 2004 15:11:18 -0000 1.6 --- ExchangeCompletionOrder.java 2 Apr 2004 23:04:36 -0000 1.7 *************** *** 1,11 **** package org.neuclear.exchange.orders; ! import org.neuclear.asset.contracts.Asset; import org.neuclear.asset.contracts.AssetGlobals; import org.neuclear.asset.orders.TransferGlobals; import org.neuclear.asset.orders.Value; ! import org.neuclear.exchange.contracts.ExchangeAgent; ! import org.neuclear.id.*; ! import org.dom4j.Element; import java.sql.Timestamp; --- 1,12 ---- package org.neuclear.exchange.orders; ! import org.dom4j.Element; import org.neuclear.asset.contracts.AssetGlobals; import org.neuclear.asset.orders.TransferGlobals; import org.neuclear.asset.orders.Value; ! import org.neuclear.id.InvalidNamedObjectException; ! import org.neuclear.id.NamedObjectReader; ! import org.neuclear.id.SignedNamedCore; ! import org.neuclear.id.SignedNamedObject; import java.sql.Timestamp; *************** *** 18,28 **** */ public final class ExchangeCompletionOrder extends ExchangeTransactionContract { ! private ExchangeCompletionOrder(final SignedNamedCore core, final ExchangeOrderReceipt receipt, final Identity counterparty, final Value amount, final Date exchangetime,final String comment) { ! super(core,receipt.getAsset(), receipt.getAgent()); this.exchangetime = exchangetime.getTime(); this.amount = amount; ! this.counterparty=counterparty; ! this.receipt=receipt; ! this.comment=comment; } --- 19,29 ---- */ public final class ExchangeCompletionOrder extends ExchangeTransactionContract { ! private ExchangeCompletionOrder(final SignedNamedCore core, final ExchangeOrderReceipt receipt, final String counterparty, final Value amount, final Date exchangetime, final String comment) { ! super(core, receipt.getAsset(), receipt.getAgent()); this.exchangetime = exchangetime.getTime(); this.amount = amount; ! this.counterparty = counterparty; ! this.receipt = receipt; ! this.comment = comment; } *************** *** 35,39 **** } ! public final Identity getCounterparty() { return counterparty; } --- 36,40 ---- } ! public final String getCounterparty() { return counterparty; } *************** *** 49,53 **** private final long exchangetime; private final Value amount; ! private final Identity counterparty; private final ExchangeOrderReceipt receipt; private final String comment; --- 50,54 ---- private final long exchangetime; private final Value amount; ! private final String counterparty; private final ExchangeOrderReceipt receipt; private final String comment; *************** *** 62,77 **** public final SignedNamedObject read(final SignedNamedCore core, final Element elem) throws InvalidNamedObjectException { if (!elem.getNamespace().equals(AssetGlobals.NS_ASSET)) ! throw new InvalidNamedObjectException(core.getName(),"Not in XML NameSpace: "+AssetGlobals.NS_ASSET.getURI()); ! if (elem.getName().equals(ExchangeGlobals.COMPLETE_TAGNAME)){ return new ExchangeCompletionOrder(core, ! (ExchangeOrderReceipt)TransferGlobals.parseEmbedded(elem,ExchangeGlobals.createQName(ExchangeGlobals.EXCHANGE_RCPT_TAGNAME)), TransferGlobals.parseRecipientTag(elem), TransferGlobals.parseValueTag(elem), ! TransferGlobals.parseTimeStampElement(elem,ExchangeGlobals.createQName(ExchangeGlobals.EXCHANGE_TIME_TAGNAME)), ! TransferGlobals.parseCommentElement(elem) ! ); } ! throw new InvalidNamedObjectException(core.getName(),"Not Matched"); } } --- 63,77 ---- public final SignedNamedObject read(final SignedNamedCore core, final Element elem) throws InvalidNamedObjectException { if (!elem.getNamespace().equals(AssetGlobals.NS_ASSET)) ! throw new InvalidNamedObjectException(core.getName(), "Not in XML NameSpace: " + AssetGlobals.NS_ASSET.getURI()); ! if (elem.getName().equals(ExchangeGlobals.COMPLETE_TAGNAME)) { return new ExchangeCompletionOrder(core, ! (ExchangeOrderReceipt) TransferGlobals.parseEmbedded(elem, ExchangeGlobals.createQName(ExchangeGlobals.EXCHANGE_RCPT_TAGNAME)), TransferGlobals.parseRecipientTag(elem), TransferGlobals.parseValueTag(elem), ! TransferGlobals.parseTimeStampElement(elem, ExchangeGlobals.createQName(ExchangeGlobals.EXCHANGE_TIME_TAGNAME)), ! TransferGlobals.parseCommentElement(elem)); } ! throw new InvalidNamedObjectException(core.getName(), "Not Matched"); } } |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:48
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/orders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/java/org/neuclear/asset/orders Modified Files: TransferGlobals.java TransferOrder.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: TransferOrder.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/orders/TransferOrder.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TransferOrder.java 21 Jan 2004 23:41:02 -0000 1.6 --- TransferOrder.java 2 Apr 2004 23:04:36 -0000 1.7 *************** *** 4,8 **** import org.neuclear.asset.contracts.Asset; import org.neuclear.asset.contracts.AssetGlobals; ! import org.neuclear.id.*; /** --- 4,11 ---- import org.neuclear.asset.contracts.Asset; import org.neuclear.asset.contracts.AssetGlobals; ! import org.neuclear.id.InvalidNamedObjectException; ! import org.neuclear.id.NamedObjectReader; ! import org.neuclear.id.SignedNamedCore; ! import org.neuclear.id.SignedNamedObject; /** *************** *** 13,29 **** public final class TransferOrder extends AssetTransactionContract { ! private TransferOrder(final SignedNamedCore core, final Asset asset, final Identity recipient, final Value amount, final String comment) { super(core, asset); this.amount = amount; this.comment = comment; ! this.recipient=recipient; } ! public final Identity getRecipient() { return recipient; } public final Value getAmount() { ! return amount; ! } public final String getComment() { --- 16,33 ---- public final class TransferOrder extends AssetTransactionContract { ! private TransferOrder(final SignedNamedCore core, final Asset asset, final String recipient, final Value amount, final String comment) { super(core, asset); this.amount = amount; this.comment = comment; ! this.recipient = recipient; } ! public final String getRecipient() { return recipient; } + public final Value getAmount() { ! return amount; ! } public final String getComment() { *************** *** 31,35 **** } ! private final Identity recipient; private final Value amount; --- 35,39 ---- } ! private final String recipient; private final Value amount; *************** *** 45,51 **** public final SignedNamedObject read(final SignedNamedCore core, final Element elem) throws InvalidNamedObjectException { if (!elem.getNamespace().getURI().equals(TransferGlobals.XFER_NSURI)) ! throw new InvalidNamedObjectException(core.getName(),"Not in XML NameSpace: "+AssetGlobals.NS_ASSET.getURI()); if (!elem.getName().equals(TransferGlobals.XFER_TAGNAME)) ! throw new InvalidNamedObjectException(core.getName(),"Incorrect XML Tagname for reader: "+TransferGlobals.XFER_TAGNAME); return new TransferOrder(core, --- 49,55 ---- public final SignedNamedObject read(final SignedNamedCore core, final Element elem) throws InvalidNamedObjectException { if (!elem.getNamespace().getURI().equals(TransferGlobals.XFER_NSURI)) ! throw new InvalidNamedObjectException(core.getName(), "Not in XML NameSpace: " + AssetGlobals.NS_ASSET.getURI()); if (!elem.getName().equals(TransferGlobals.XFER_TAGNAME)) ! throw new InvalidNamedObjectException(core.getName(), "Incorrect XML Tagname for reader: " + TransferGlobals.XFER_TAGNAME); return new TransferOrder(core, *************** *** 53,58 **** TransferGlobals.parseRecipientTag(elem), TransferGlobals.parseValueTag(elem), ! TransferGlobals.parseCommentElement(elem) ! ); } } --- 57,61 ---- TransferGlobals.parseRecipientTag(elem), TransferGlobals.parseValueTag(elem), ! TransferGlobals.parseCommentElement(elem)); } } Index: TransferGlobals.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/orders/TransferGlobals.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** TransferGlobals.java 1 Apr 2004 23:18:32 -0000 1.8 --- TransferGlobals.java 2 Apr 2004 23:04:36 -0000 1.9 *************** *** 6,10 **** import org.neuclear.commons.Utility; import org.neuclear.commons.time.TimeTools; - import org.neuclear.id.Identity; import org.neuclear.id.InvalidNamedObjectException; import org.neuclear.id.NameResolutionException; --- 6,9 ---- *************** *** 36,39 **** --- 35,42 ---- $Id$ $Log$ + Revision 1.9 2004/04/02 23:04:36 pelle + Got TransferOrder and Builder working with their test cases. + Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + Revision 1.8 2004/04/01 23:18:32 pelle Split Identity into Signatory and Identity class. *************** *** 226,236 **** } ! public static final Identity parseRecipientTag(Element elem) throws InvalidNamedObjectException { final String name = getElementValue(elem, RECIPIENT_TAG); ! try { ! return Resolver.resolveIdentity(name); ! } catch (NameResolutionException e) { ! throw new InvalidNamedObjectException(name, e); ! } } --- 229,235 ---- } ! public static final String parseRecipientTag(Element elem) throws InvalidNamedObjectException { final String name = getElementValue(elem, RECIPIENT_TAG); ! return name; } |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:48
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/servlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/java/org/neuclear/asset/servlet Modified Files: TransferRequestServlet.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: TransferRequestServlet.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/servlet/TransferRequestServlet.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** TransferRequestServlet.java 1 Apr 2004 23:18:33 -0000 1.3 --- TransferRequestServlet.java 2 Apr 2004 23:04:36 -0000 1.4 *************** *** 2,6 **** import org.neuclear.asset.InvalidTransferException; - import org.neuclear.asset.contracts.Asset; import org.neuclear.asset.orders.Amount; import org.neuclear.asset.orders.builders.TransferOrderBuilder; --- 2,5 ---- *************** *** 35,38 **** --- 34,41 ---- $Id$ $Log$ + Revision 1.4 2004/04/02 23:04:36 pelle + Got TransferOrder and Builder working with their test cases. + Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + Revision 1.3 2004/04/01 23:18:33 pelle Split Identity into Signatory and Identity class. *************** *** 89,101 **** public class TransferRequestServlet extends SignatureRequestServlet { protected Builder createBuilder(HttpServletRequest request) throws NeuClearException { - Asset asset = (Asset) Resolver.resolveIdentity(getServiceid()); Identity user = (Identity) request.getUserPrincipal(); if (user == null) user = Resolver.resolveIdentity(request.getParameter("sender")); ! Identity to = Resolver.resolveIdentity(request.getParameter("recipient")); double amount = Double.parseDouble(Utility.denullString(request.getParameter("amount"), "0")); String comment = Utility.denullString(request.getParameter("comment")); try { ! return new TransferOrderBuilder(asset, to, new Amount(amount), comment); } catch (InvalidTransferException e) { throw new InvalidNamedObjectException(user.getName(), e); --- 92,103 ---- public class TransferRequestServlet extends SignatureRequestServlet { protected Builder createBuilder(HttpServletRequest request) throws NeuClearException { Identity user = (Identity) request.getUserPrincipal(); if (user == null) user = Resolver.resolveIdentity(request.getParameter("sender")); ! String to = request.getParameter("recipient"); double amount = Double.parseDouble(Utility.denullString(request.getParameter("amount"), "0")); String comment = Utility.denullString(request.getParameter("comment")); try { ! return new TransferOrderBuilder(getServiceid(), to, new Amount(amount), comment); } catch (InvalidTransferException e) { throw new InvalidNamedObjectException(user.getName(), e); |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:47
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/orders/builders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/java/org/neuclear/asset/orders/builders Modified Files: TransferOrderBuilder.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: TransferOrderBuilder.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/orders/builders/TransferOrderBuilder.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TransferOrderBuilder.java 18 Feb 2004 00:13:30 -0000 1.4 --- TransferOrderBuilder.java 2 Apr 2004 23:04:35 -0000 1.5 *************** *** 9,13 **** import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; ! import org.neuclear.id.Identity; import org.neuclear.id.builders.Builder; --- 9,13 ---- import org.neuclear.commons.NeuClearException; import org.neuclear.commons.Utility; ! import org.neuclear.id.Signatory; import org.neuclear.id.builders.Builder; *************** *** 32,35 **** --- 32,39 ---- $Id$ $Log$ + Revision 1.5 2004/04/02 23:04:35 pelle + Got TransferOrder and Builder working with their test cases. + Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. + Revision 1.4 2004/02/18 00:13:30 pelle Many, many clean ups. I've readded Targets in a new method. *************** *** 133,144 **** */ public class TransferOrderBuilder extends Builder { ! public TransferOrderBuilder(final Asset asset, final Identity recipient, final Value amount, final String comment) throws InvalidTransferException, NegativeTransferException, NeuClearException { ! this(asset.getName(),recipient.getName(),amount,comment); } public TransferOrderBuilder(final String assetname, final String recipient, final Value amount, final String comment) throws InvalidTransferException, NegativeTransferException, NeuClearException { super(TransferGlobals.createQName(TransferGlobals.XFER_TAGNAME)); if (amount.getAmount() < 0) throw new NegativeTransferException(amount); ! if (assetname==null) throw new InvalidTransferException("assetName"); if (recipient == null) --- 137,149 ---- */ public class TransferOrderBuilder extends Builder { ! public TransferOrderBuilder(final Asset asset, final Signatory recipient, final Value amount, final String comment) throws InvalidTransferException, NegativeTransferException, NeuClearException { ! this(asset.getName(), recipient.getName(), amount, comment); } + public TransferOrderBuilder(final String assetname, final String recipient, final Value amount, final String comment) throws InvalidTransferException, NegativeTransferException, NeuClearException { super(TransferGlobals.createQName(TransferGlobals.XFER_TAGNAME)); if (amount.getAmount() < 0) throw new NegativeTransferException(amount); ! if (assetname == null) throw new InvalidTransferException("assetName"); if (recipient == null) |
|
From: Pelle B. <pe...@us...> - 2004-04-02 23:16:47
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/controllers/currency In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4149/src/java/org/neuclear/asset/controllers/currency Modified Files: CurrencyController.java Log Message: Got TransferOrder and Builder working with their test cases. Working on TransferReceipt which is the first embedded receipt. This is causing some problems at the moment. Index: CurrencyController.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/controllers/currency/CurrencyController.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** CurrencyController.java 1 Apr 2004 23:18:32 -0000 1.18 --- CurrencyController.java 2 Apr 2004 23:04:35 -0000 1.19 *************** *** 41,45 **** try { ! final PostedTransaction posted = ledger.verifiedTransfer("id", req.getSignatory().getName(), req.getRecipient().getName(), req.getAmount().getAmount(), req.getComment()); return (TransferReceipt) new TransferReceiptBuilder(req, posted.getTransactionTime()).convert(asset.getName(), signer); } catch (LowlevelLedgerException e) { --- 41,45 ---- try { ! final PostedTransaction posted = ledger.verifiedTransfer("id", req.getSignatory().getName(), req.getRecipient(), req.getAmount().getAmount(), req.getComment()); return (TransferReceipt) new TransferReceiptBuilder(req, posted.getTransactionTime()).convert(asset.getName(), signer); } catch (LowlevelLedgerException e) { *************** *** 64,70 **** * @throws LowLevelPaymentException */ ! public double getBalance(final Identity id) throws LowLevelPaymentException { try { ! return ledger.getBalance(id.getName()); } catch (LowlevelLedgerException e) { throw new LowLevelPaymentException(e); --- 64,70 ---- * @throws LowLevelPaymentException */ ! public double getBalance(final String id) throws LowLevelPaymentException { try { ! return ledger.getBalance(id); } catch (LowlevelLedgerException e) { throw new LowLevelPaymentException(e); |
|
From: <bug...@ve...> - 2004-04-02 23:13:41
|
Message: The following issue has been closed. --------------------------------------------------------------------- View the issue: http://jira.neuclear.org//browse/PAY-21 Here is an overview of the issue: --------------------------------------------------------------------- Key: PAY-21 Summary: Create Test Case for Asset Type: Test Case Status: Closed Priority: Major Resolution: FIXED Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: NeuClear Payments Components: Data Objects Fix Fors: 0.4 Versions: 0.4 Assignee: Pelle Braendgaard Reporter: Pelle Braendgaard Created: Fri, 2 Apr 2004 3:12 PM Updated: Fri, 2 Apr 2004 3:12 PM Description: Test the creation of Assets via the AssetBuilder. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.neuclear.org//secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: <bug...@ve...> - 2004-04-02 23:13:36
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://jira.neuclear.org//browse/PAY-21 Here is an overview of the issue: --------------------------------------------------------------------- Key: PAY-21 Summary: Create Test Case for Asset Type: Test Case Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: NeuClear Payments Components: Data Objects Fix Fors: 0.4 Versions: 0.4 Assignee: Pelle Braendgaard Reporter: Pelle Braendgaard Created: Fri, 2 Apr 2004 3:12 PM Updated: Fri, 2 Apr 2004 3:12 PM Description: Test the creation of Assets via the AssetBuilder. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.neuclear.org//secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
|
From: Pelle B. <pe...@us...> - 2004-04-02 18:08:27
|
Update of /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/orders/builders In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7038/src/test/org/neuclear/asset/orders/builders Modified Files: TransferOrderBuilderTest.java Log Message: Added new createTestAsset() method. Index: TransferOrderBuilderTest.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-pay/src/test/org/neuclear/asset/orders/builders/TransferOrderBuilderTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TransferOrderBuilderTest.java 1 Apr 2004 23:18:33 -0000 1.4 --- TransferOrderBuilderTest.java 2 Apr 2004 17:56:16 -0000 1.5 *************** *** 3,6 **** --- 3,7 ---- import org.neuclear.asset.InvalidTransferException; import org.neuclear.asset.contracts.Asset; + import org.neuclear.asset.contracts.builders.AssetBuilder; import org.neuclear.asset.orders.Amount; import org.neuclear.asset.orders.TransferOrder; *************** *** 34,37 **** --- 35,41 ---- $Id$ $Log$ + Revision 1.5 2004/04/02 17:56:16 pelle + Added new createTestAsset() method. + Revision 1.4 2004/04/01 23:18:33 pelle Split Identity into Signatory and Identity class. *************** *** 78,89 **** protected Builder createBuilder() throws NeuClearException, InvalidTransferException, XMLException { ! Builder builder = new TransferOrderBuilder("neu://test/bux", "neu://bob@test", new Amount(20), "Test"); ! System.out.println(builder.asXML()); return builder; } ! public Asset createTestAsset() throws NonExistingSignerException { ! // return new Asset("http://localhost",getSigner().getPublicKey("neu://test/bux"),1,1); ! return null;//TODO FIX } --- 82,97 ---- protected Builder createBuilder() throws NeuClearException, InvalidTransferException, XMLException { ! Builder builder = new TransferOrderBuilder(asset, null, new Amount(20), "Test"); ! // System.out.println(builder.asXML()); return builder; } ! public Asset createTestAsset() throws NeuClearException { ! AssetBuilder builder = new AssetBuilder("http://bux.neuclear.org", ! getSigner().getPublicKey("neu://test/bux"), ! getAlice().getPublicKey(), ! 2, 0); ! return (Asset) builder.convert(NAME, getSigner()); ! } |
|
From: Pelle B. <pe...@us...> - 2004-04-02 17:46:11
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/verifier In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2656/src/java/org/neuclear/id/verifier Modified Files: VerifyingReader.java Log Message: Added automatic caching of SignedNamedObject Index: VerifyingReader.java =================================================================== RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/verifier/VerifyingReader.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** VerifyingReader.java 22 Mar 2004 20:09:49 -0000 1.22 --- VerifyingReader.java 2 Apr 2004 17:33:31 -0000 1.23 *************** *** 4,7 **** --- 4,8 ---- import org.neuclear.id.*; import org.neuclear.id.auth.AuthenticationTicket; + import org.neuclear.id.resolver.Resolver; import org.neuclear.xml.XMLException; import org.neuclear.xml.XMLTools; *************** *** 31,34 **** --- 32,38 ---- $Id$ $Log$ + Revision 1.23 2004/04/02 17:33:31 pelle + Added automatic caching of SignedNamedObject + Revision 1.22 2004/03/22 20:09:49 pelle Added simple ledger for unit testing and in memory use *************** *** 195,199 **** public final SignedNamedObject read(final Element elem) throws InvalidNamedObjectException { ! return resolveReader(elem).read(SignedNamedCore.read(elem), elem); } --- 199,203 ---- public final SignedNamedObject read(final Element elem) throws InvalidNamedObjectException { ! return Resolver.cache(resolveReader(elem).read(SignedNamedCore.read(elem), elem)); } |