|
From: <pe...@us...> - 2003-10-29 21:14:47
|
Update of /cvsroot/neuclear/neuclear-pay/src/java
In directory sc8-pr-cvs1:/tmp/cvs-serv29147/src/java
Modified Files:
neuclear-pay.xml
Log Message:
Refactored the whole signing process. Now we have an interface called Signer which is the old SignerStore.
To use it you pass a byte array and an alias. The sign method then returns the signature.
If a Signer needs a passphrase it uses a PassPhraseAgent to present a dialogue box, read it from a command line etc.
This new Signer pattern allows us to use secure signing hardware such as N-Cipher in the future for server applications as well
as SmartCards for end user applications.
Index: neuclear-pay.xml
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/src/java/neuclear-pay.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** neuclear-pay.xml 28 Oct 2003 23:42:47 -0000 1.1
--- neuclear-pay.xml 29 Oct 2003 21:14:44 -0000 1.2
***************
*** 8,10 ****
--- 8,20 ----
<param type="java.lang.String">neu://superbux/reserve</param>
</component>
+ <component class="org.neuclear.pay.PaymentReceiver">
+ <param type="java.lang.String">neu://superbux/reserve</param>
+ </component>
+ <component type="org.neuclear.signer.Signer"
+ class="org.neuclear.signer.JCESigner"/>
+ <component type="org.neuclear.signer.PublicKeySource"
+ class="org.neuclear.signer.JCESigner"/>
+ <component type="org.neuclear.passphraseagents.PassPhraseAgent"
+ class="org.neuclear.passphraseagents.GuiDialogAgent"/>
+
</components>
|