[Webfunds-devel] OpenPGP signed Contracts
Edwin Woudt
edwin@woudt.nl
Sat, 27 May 2000 05:06:14 +0200
"Jeroen C. van Gelderen" wrote:
>
> > * webfunds/client/contracts/SignContractWizard.java
> > - this class should not be dealing with X509 stuff at all, so the
> > signature generation code will move to Contract.java
>
> I don't agree here. A Contract object represents a valid (hence signed)
> contract. Subclasses of Contract should specialize based on contract
> type (CurrencyContract, FooContract). Contract itself should be
> immutable and able to restore itself to whatever format it came from.
> What you need is a factory that does something along the lines of:
>
> ContractInfo + PrivateKey | ContractSigner/Factory -> FooContract
Ok, but you agree it should be removed from the client code, where it
is now, right?
I don't really care where it ends up, as long as I don't have to do
all the rewriting.
Edwin
--
Edwin Woudt - edwin@woudt.org - http://edwin.woudt.org/