[Webfunds-commits] java/webfunds/client UInterface.java UInterfaceImpl.java UInterfaceImpl2.java

Jeroen C. van Gelderen gelderen@cypherpunks.ai
Thu, 6 Jul 2000 13:16:46 -0400 (AST)


gelderen    00/07/06 13:16:46

  Modified:    webfunds/client UInterface.java UInterfaceImpl.java
                        UInterfaceImpl2.java
  Log:
  Remove the unused CertPackage getX509Certificate() and KeyPair getKeyPair()
  functions. They call the X.509 code which is being removed.

Revision  Changes    Path
1.11      +1 -8      java/webfunds/client/UInterface.java

Index: UInterface.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/UInterface.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- UInterface.java	2000/06/05 03:48:15	1.10
+++ UInterface.java	2000/07/06 17:16:45	1.11
@@ -1,5 +1,5 @@
 /*
- * $Id: UInterface.java,v 1.10 2000/06/05 03:48:15 gelderen Exp $
+ * $Id: UInterface.java,v 1.11 2000/07/06 17:16:45 gelderen Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -17,13 +17,6 @@
         NO      = 1,
         CANCEL  = 2;
     
-    
-    //get a X509 Certificate
-    CertPackage getX509Certificate();
-    
-    //get a public/private keypair.
-    KeyPair getKeyPair(); // Might have to change this to getKeyPair(String algo) in the future.
- 
     //get an yes/no answer from the user
     int getYesNo(String message);
     



1.16      +1 -25     java/webfunds/client/UInterfaceImpl.java

Index: UInterfaceImpl.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/UInterfaceImpl.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- UInterfaceImpl.java	2000/03/28 19:13:20	1.15
+++ UInterfaceImpl.java	2000/07/06 17:16:45	1.16
@@ -1,5 +1,5 @@
 /*
- * $Id: UInterfaceImpl.java,v 1.15 2000/03/28 19:13:20 iang Exp $
+ * $Id: UInterfaceImpl.java,v 1.16 2000/07/06 17:16:45 gelderen Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -37,30 +37,6 @@
         return "UInterface";
     }
 
-    public CertPackage getX509Certificate()
-    {
-        CertPackage retval = null;
-        try
-        {
-            retval = Crypto.getCertPackage(512,
-                            "name", "org_unit", "org", "country");
-        }
-        catch(Exception ex)
-        {
-            System.err.println(ex);
-        }
-System.err.println("UI generating certpackage");
-        return retval;
-    }
-
-    public KeyPair getKeyPair()
-        // Might have to change this to getKeyPair(String algo) in the future.
-    {
-System.err.println("UI generating X509Cert");
-        Crypto.generateCertificate(512);
-System.err.println("UI Returning keypair");
-        return new KeyPair(Crypto.getPublicKey(), Crypto.getPrivateKey() );
-    }
         
     public int getYesNo(String message)
     {



1.8       +1 -25     java/webfunds/client/UInterfaceImpl2.java

Index: UInterfaceImpl2.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/client/UInterfaceImpl2.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- UInterfaceImpl2.java	1999/11/27 15:58:41	1.7
+++ UInterfaceImpl2.java	2000/07/06 17:16:45	1.8
@@ -1,5 +1,5 @@
 /*
- * $Id: UInterfaceImpl2.java,v 1.7 1999/11/27 15:58:41 iang Exp $
+ * $Id: UInterfaceImpl2.java,v 1.8 2000/07/06 17:16:45 gelderen Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -32,30 +32,6 @@
         return "UInterface";
     }
 
-    public CertPackage getX509Certificate()
-    {
-System.err.println("generating certpackage");
-        CertPackage retval = null;
-        try
-        {
-            retval = Crypto.getCertPackage(512,
-                              "name", "org_unit", "org", "country");
-        }
-        catch(Exception ex)
-        {
-            System.err.println(ex);
-        }
-        return retval;
-    }
-
-    // Might have to change this to getKeyPair(String algo) in the future.
-    public KeyPair getKeyPair()
-    {
-System.err.println("generating X509Cert");
-        Crypto.generateCertificate(512);
-System.err.println("Returning keypair");
-        return new KeyPair(Crypto.getPublicKey(), Crypto.getPrivateKey() );
-    }
 
     // just quickly do these, they are not used in this test class
     public int    getYesNo(String msg)     { msg=null; return UInterface.YES; }