|
From: <pe...@us...> - 2004-01-11 00:39:17
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/id/builders
In directory sc8-pr-cvs1:/tmp/cvs-serv22513/src/java/org/neuclear/id/builders
Added Files:
EmbeddedSignedObjectBuilder.java
Log Message:
Cleaned up the schemas even more they now all verifiy.
The Order/Receipt pairs for neuclear pay, should now work. They all have Readers using the latest
Schema.
The TransferBuilders are done and the ExchangeBuilders are nearly there.
The new EmbeddedSignedNamedObject builder is useful for creating new Receipts. The new ReceiptBuilder uses
this to create the embedded transaction.
ExchangeOrders now have the concept of BidItem's, you could create an ExchangeOrder bidding on various items at the same time, to be exchanged as one atomic multiparty exchange.
Still doesnt build yet, but very close now ;-)
--- NEW FILE: EmbeddedSignedObjectBuilder.java ---
package org.neuclear.id.builders;
import org.neuclear.xml.xmlsec.SignedElement;
import org.neuclear.xml.xmlsec.XMLSecurityException;
import org.neuclear.id.SignedNamedObject;
import org.dom4j.QName;
import org.dom4j.DocumentHelper;
import org.dom4j.DocumentException;
/**
* Created by IntelliJ IDEA.
* User: pelleb
* Date: Jan 10, 2004
* Time: 6:20:26 PM
* To change this template use Options | File Templates.
*/
public class EmbeddedSignedObjectBuilder extends SignedElement {
public EmbeddedSignedObjectBuilder(final QName qname, final SignedNamedObject embedded) {
super(qname);
try {
getElement().add(DocumentHelper.parseText(embedded.getEncoded()));
} catch (DocumentException e) {
throw new RuntimeException((e));
}
}
public String getURI() throws XMLSecurityException {
return "#"; //To change body of implemented methods use Options | File Templates.
}
}
|