|
From: <pe...@us...> - 2003-11-19 23:33:03
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/contracts
In directory sc8-pr-cvs1:/tmp/cvs-serv12523/src/java/org/neuclear/asset/contracts
Modified Files:
Asset.java AssetTransactionContract.java
Log Message:
Signers now can generatekeys via the generateKey() method.
Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
SignedNamedObject now contains the full xml which is returned with getEncoded()
This means that it is now possible to further send on or process a SignedNamedObject, leaving
NamedObjectBuilder for its original purposes of purely generating new Contracts.
NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
Updated all major interfaces that used the old model to use the new model.
Index: Asset.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/contracts/Asset.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Asset.java 12 Nov 2003 23:47:04 -0000 1.6
--- Asset.java 19 Nov 2003 23:32:19 -0000 1.7
***************
*** 9,13 ****
import org.neuclear.id.NamedObjectReader;
import org.neuclear.id.SignedNamedObject;
- import org.neuclear.id.builders.NamedObjectBuilder;
import org.neuclear.senders.SoapSender;
import org.neuclear.xml.xmlsec.KeyInfo;
--- 9,12 ----
***************
*** 38,41 ****
--- 37,49 ----
$Id$
$Log$
+ Revision 1.7 2003/11/19 23:32:19 pelle
+ Signers now can generatekeys via the generateKey() method.
+ Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
+ SignedNamedObject now contains the full xml which is returned with getEncoded()
+ This means that it is now possible to further send on or process a SignedNamedObject, leaving
+ NamedObjectBuilder for its original purposes of purely generating new Contracts.
+ NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
+ Updated all major interfaces that used the old model to use the new model.
+
Revision 1.6 2003/11/12 23:47:04 pelle
Much work done in creating good test environment.
***************
*** 102,109 ****
* @throws NeuClearException
*/
! public SignedNamedObject send(NamedObjectBuilder obj) throws NeuClearException {
! if (obj.isSigned())
! return SoapSender.quickSend(assetController, obj);
! throw new NeuClearException("Object wasnt signed");
}
--- 110,115 ----
* @throws NeuClearException
*/
! public SignedNamedObject send(SignedNamedObject obj) throws NeuClearException {
! return SoapSender.quickSend(assetController, obj);
}
Index: AssetTransactionContract.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/contracts/AssetTransactionContract.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AssetTransactionContract.java 12 Nov 2003 23:47:04 -0000 1.3
--- AssetTransactionContract.java 19 Nov 2003 23:32:20 -0000 1.4
***************
*** 21,28 ****
* $Id$
* $Log$
* Revision 1.3 2003/11/12 23:47:04 pelle
* Much work done in creating good test environment.
* PaymentReceiverTest works, but needs a abit more work in its environment to succeed testing.
! *
* Revision 1.2 2003/11/11 21:17:19 pelle
* Further vital reshuffling.
--- 21,37 ----
* $Id$
* $Log$
+ * Revision 1.4 2003/11/19 23:32:20 pelle
+ * Signers now can generatekeys via the generateKey() method.
+ * Refactored the relationship between SignedNamedObject and NamedObjectBuilder a bit.
+ * SignedNamedObject now contains the full xml which is returned with getEncoded()
+ * This means that it is now possible to further send on or process a SignedNamedObject, leaving
+ * NamedObjectBuilder for its original purposes of purely generating new Contracts.
+ * NamedObjectBuilder.sign() now returns a SignedNamedObject which is the prefered way of processing it.
+ * Updated all major interfaces that used the old model to use the new model.
+ *
* Revision 1.3 2003/11/12 23:47:04 pelle
* Much work done in creating good test environment.
* PaymentReceiverTest works, but needs a abit more work in its environment to succeed testing.
! * <p/>
* Revision 1.2 2003/11/11 21:17:19 pelle
* Further vital reshuffling.
|