[Webfunds-commits] java/webfunds/ricardian Contract.java

Edwin Woudt edwin@cypherpunks.ai
Sun, 6 Aug 2000 22:14:41 -0400 (AST)


edwin       00/08/06 22:14:41

  Modified:    webfunds/ricardian Contract.java
  Log:
  Removing OpenPGP code to get it compiling again with the new OpenPGP jar.

Revision  Changes    Path
1.26      +3 -15     java/webfunds/ricardian/Contract.java

Index: Contract.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/ricardian/Contract.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- Contract.java	2000/07/21 21:32:34	1.25
+++ Contract.java	2000/08/07 02:14:41	1.26
@@ -1,4 +1,4 @@
-/* $Id: Contract.java,v 1.25 2000/07/21 21:32:34 gelderen Exp $
+/* $Id: Contract.java,v 1.26 2000/08/07 02:14:41 edwin Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -673,13 +673,7 @@
     private PGPPublicKey getContractCertPGP()
         throws ContractException
     {
-        PGPPublicKey key = new PGPPublicKey();
-        try {
-            key.readKey("pubkey.pgp");
-        } catch (IOException ioe) {
-            ioe.printStackTrace();
-        }
-        return key;
+        throw new RuntimeException("Not implemented");
     }
 
     /**
@@ -764,13 +758,7 @@
         // ### FIXME (edwin): Figure out a better way to check this
         if (s.startsWith("-----BEGIN PGP SIGNED MESSAGE-----")) {
 
-            PGPPublicKey issuerKey = getContractCertPGP();
-            
-            try {
-                return PGPMessage.verifyClearSign(s, issuerKey);
-            } catch (IOException ioe) {
-                return false;
-            }
+            throw new RuntimeException("OpenPGP Contracts not supported yet.");
             
         } else {  // X.509 signed contract