[Webfunds-commits] java/webfunds/sox Request.java
Ian Grigg
iang@cypherpunks.ai
Fri, 13 Oct 2000 21:51:44 -0400 (AST)
iang 00/10/13 21:51:44
Modified: webfunds/sox Request.java
Log:
comments; added reconstructReply for server side
Revision Changes Path
1.20 +19 -6 java/webfunds/sox/Request.java
Index: Request.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/Request.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Request.java 2000/09/24 23:32:04 1.19
+++ Request.java 2000/10/14 01:51:44 1.20
@@ -1,5 +1,5 @@
/*
- * $Id: Request.java,v 1.19 2000/09/24 23:32:04 iang Exp $
+ * $Id: Request.java,v 1.20 2000/10/14 01:51:44 iang Exp $
*
* Copyright (c) Systemics Ltd 1995-1999 on behalf of
* the WebFunds Development Team. All Rights Reserved.
@@ -118,8 +118,18 @@
*/
public abstract Reply errorReply(int err);
+ /**
+ * Get an error Reply for this Request.
+ * @param err is the error number to set the reply to
+ */
+ public /* abstract */ Reply reconstructReply(byte[] buf)
+ throws SOXPacketException
+ {
+ throw new SOXPacketException("reconstructReply - not implemented");
+ }
+
/**
* Create an unsigned request
*
@@ -218,8 +228,8 @@
/**
* Sign this request
+ * Deprecate. I don't think I want to be able to see the private key!
* @param the key to use to sign the request
- */
public void sign(PrivateKey key)
throws SOXKeyException
{
@@ -230,22 +240,25 @@
throw new SOXKeyException(ex.getMessage());
}
}
+ */
/**
* Sign this request. What was this method for? Deprecate.
* @param the key to use to sign the request
- */
public void sign(AccountId account, PrivateKey key)
throws SOXKeyException
{
this.account = account;
sign(key);
}
+ */
/**
- * verify the signature on this request
- * @param key the key to use to verify the request
- * @return true if the signature is valid
+ * Verify the signature on this request. This can be done by
+ * anyone with access to the public key (but not the private key).
+ *
+ * @param key the key to use to verify the request
+ * @return true if the signature is valid
*/
public boolean verify(PublicKey key)
throws SOXKeyException