summaryrefslogtreecommitdiff
path: root/java/security
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-06-04 22:54:59 +0000
committerTom Tromey <tromey@redhat.com>2001-06-04 22:54:59 +0000
commitef533e002fd787ddd3608464fad861b078a3f4e2 (patch)
treeb0f50cf788817ef09efd6192e403e7d675d78753 /java/security
parentf86c6d93ec139c19eafbb108933523d20f436089 (diff)
downloadclasspath-ef533e002fd787ddd3608464fad861b078a3f4e2.tar.gz
* java/security/PublicKey.java: Extend Key.
* java/security/PrivateKey.java: Extend Key.
Diffstat (limited to 'java/security')
-rw-r--r--java/security/PrivateKey.java65
-rw-r--r--java/security/PublicKey.java30
2 files changed, 40 insertions, 55 deletions
diff --git a/java/security/PrivateKey.java b/java/security/PrivateKey.java
index c86548e08..a0bdd6b5f 100644
--- a/java/security/PrivateKey.java
+++ b/java/security/PrivateKey.java
@@ -1,47 +1,40 @@
/* PrivateKey.java -- "Super-interface" for all private keys
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2001 Free Software Foundation, Inc.
-This file is part of GNU Classpath.
+ This file is part of GNU Classpath.
-GNU Classpath is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-GNU Classpath is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
+ GNU Classpath is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
-You should have received a copy of the GNU General Public License
-along with GNU Classpath; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-02111-1307 USA.
+ GNU Classpath is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
-As a special exception, if you link this library with other files to
-produce an executable, this library does not by itself cause the
-resulting executable to be covered by the GNU General Public License.
-This exception does not however invalidate any other reasons why the
-executable file might be covered by the GNU General Public License. */
+ You should have received a copy of the GNU General Public License
+ along with GNU Classpath; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA.
+
+ As a special exception, if you link this library with other files to
+ produce an executable, this library does not by itself cause the
+ resulting executable to be covered by the GNU General Public License.
+ This exception does not however invalidate any other reasons why the
+ executable file might be covered by the GNU General Public License. */
package java.security;
/**
- * This interface specified no methods. In simply provides a common
- * super-interface for all algorithm specific private key values.
- *
- * @version 0.0
- *
- * @author Aaron M. Renn (arenn@urbanophile.com)
- */
-public interface PrivateKey
+ * This interface specified no methods. In simply provides a common
+ * super-interface for all algorithm specific private key values.
+ *
+ * @version 0.0
+ *
+ * @author Aaron M. Renn (arenn@urbanophile.com)
+ */
+public interface PrivateKey extends Key
{
-
-/**
- * This is the version id used for serialization
- */
-public static final long serialVersionUID = 0L;
-
-} // interface PrivateKey
-
+}
diff --git a/java/security/PublicKey.java b/java/security/PublicKey.java
index 3dc91a012..01279635e 100644
--- a/java/security/PublicKey.java
+++ b/java/security/PublicKey.java
@@ -1,5 +1,5 @@
/* PublicKey.java -- "Super-interface" for all public keys
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 2001 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -24,24 +24,16 @@ resulting executable to be covered by the GNU General Public License.
This exception does not however invalidate any other reasons why the
executable file might be covered by the GNU General Public License. */
-
package java.security;
/**
- * This interface specified no methods. In simply provides a common
- * super-interface for all algorithm specific public key values.
- *
- * @version 0.0
- *
- * @author Aaron M. Renn (arenn@urbanophile.com)
- */
-public interface PublicKey
+ * This interface specified no methods. In simply provides a common
+ * super-interface for all algorithm specific public key values.
+ *
+ * @version 0.0
+ *
+ * @author Aaron M. Renn (arenn@urbanophile.com)
+ */
+public interface PublicKey extends Key
{
-
-/**
- * This is the version id used for serialization
- */
-public static final long serialVersionUID = 0L;
-
-} // interface PublicKey
-
+}