|
From: <pe...@us...> - 2003-11-21 04:43:07
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/remote
In directory sc8-pr-cvs1:/tmp/cvs-serv10286/src/java/org/neuclear/asset/remote
Modified Files:
AssetControlClient.java
Log Message:
EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
Otherwise You will Finaliate.
Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
This should hopefully make everything more stable (and secure).
Index: AssetControlClient.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/asset/remote/AssetControlClient.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AssetControlClient.java 19 Nov 2003 23:32:20 -0000 1.6
--- AssetControlClient.java 21 Nov 2003 04:43:04 -0000 1.7
***************
*** 30,33 ****
--- 30,39 ----
$Id$
$Log$
+ Revision 1.7 2003/11/21 04:43:04 pelle
+ EncryptedFileStore now works. It uses the PBECipher with DES3 afair.
+ Otherwise You will Finaliate.
+ Anything that can be final has been made final throughout everyting. We've used IDEA's Inspector tool to find all instance of variables that could be final.
+ This should hopefully make everything more stable (and secure).
+
Revision 1.6 2003/11/19 23:32:20 pelle
Signers now can generatekeys via the generateKey() method.
***************
*** 88,114 ****
* This client can be used to perform all the major Asset Transfer functionality using the Assets remote assetName server.
*/
! public class AssetControlClient {
! public AssetControlClient(Signer signer) throws NeuClearException {
this.signer = signer;
}
! public TransferReceipt performTransfer(TransferRequestBuilder req) throws NeuClearException, XMLException {
return (TransferReceipt) send(req);
}
! public HeldTransferReceipt performHeldTransfer(HeldTransferRequestBuilder req) throws NeuClearException, XMLException {
return (HeldTransferReceipt) send(req);
}
! public TransferReceipt performCompleteHeld(CompleteHeldTransferRequestBuilder req) throws NeuClearException, XMLException {
return (TransferReceipt) send(req);
}
! public CancelHeldTransferReceipt performCancelHeld(CancelHeldTransferRequestBuilder req) throws NeuClearException, XMLException {
return (CancelHeldTransferReceipt) req.getAsset().send(req.sign(signer));
}
! private SignedNamedObject send(TransferBuilder req) throws NeuClearException, XMLException {
return req.getAsset().send(req.sign(signer));
}
--- 94,120 ----
* This client can be used to perform all the major Asset Transfer functionality using the Assets remote assetName server.
*/
! public final class AssetControlClient {
! public AssetControlClient(final Signer signer) throws NeuClearException {
this.signer = signer;
}
! public final TransferReceipt performTransfer(final TransferRequestBuilder req) throws NeuClearException, XMLException {
return (TransferReceipt) send(req);
}
! public final HeldTransferReceipt performHeldTransfer(final HeldTransferRequestBuilder req) throws NeuClearException, XMLException {
return (HeldTransferReceipt) send(req);
}
! public final TransferReceipt performCompleteHeld(final CompleteHeldTransferRequestBuilder req) throws NeuClearException, XMLException {
return (TransferReceipt) send(req);
}
! public final CancelHeldTransferReceipt performCancelHeld(final CancelHeldTransferRequestBuilder req) throws NeuClearException, XMLException {
return (CancelHeldTransferReceipt) req.getAsset().send(req.sign(signer));
}
! private SignedNamedObject send(final TransferBuilder req) throws NeuClearException, XMLException {
return req.getAsset().send(req.sign(signer));
}
|