aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/security/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/security/interfaces')
-rw-r--r--libjava/java/security/interfaces/DSAKey.java23
-rw-r--r--libjava/java/security/interfaces/DSAParams.java26
-rw-r--r--libjava/java/security/interfaces/DSAPrivateKey.java27
-rw-r--r--libjava/java/security/interfaces/DSAPublicKey.java27
-rw-r--r--libjava/java/security/interfaces/RSAPrivateCrtKey.java30
-rw-r--r--libjava/java/security/interfaces/RSAPrivateKey.java27
-rw-r--r--libjava/java/security/interfaces/RSAPublicKey.java27
7 files changed, 187 insertions, 0 deletions
diff --git a/libjava/java/security/interfaces/DSAKey.java b/libjava/java/security/interfaces/DSAKey.java
new file mode 100644
index 0000000..3920d7b
--- /dev/null
+++ b/libjava/java/security/interfaces/DSAKey.java
@@ -0,0 +1,23 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.security.interfaces;
+
+/**
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 1, 2000.
+ */
+
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
+public interface DSAKey
+{
+ public DSAParams getParams();
+}
diff --git a/libjava/java/security/interfaces/DSAParams.java b/libjava/java/security/interfaces/DSAParams.java
new file mode 100644
index 0000000..8483bd5
--- /dev/null
+++ b/libjava/java/security/interfaces/DSAParams.java
@@ -0,0 +1,26 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.security.interfaces;
+import java.math.BigInteger;
+
+/**
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 1, 2000.
+ */
+
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
+public interface DSAParams
+{
+ public BigInteger getP();
+ public BigInteger getQ();
+ public BigInteger getG();
+}
diff --git a/libjava/java/security/interfaces/DSAPrivateKey.java b/libjava/java/security/interfaces/DSAPrivateKey.java
new file mode 100644
index 0000000..833ee3a
--- /dev/null
+++ b/libjava/java/security/interfaces/DSAPrivateKey.java
@@ -0,0 +1,27 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.security.interfaces;
+import java.security.PrivateKey;
+import java.math.BigInteger;
+
+/**
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 1, 2000.
+ */
+
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
+public interface DSAPrivateKey extends DSAKey, PrivateKey
+{
+ public static final long serialVersionUID;
+
+ public BigInteger getX();
+}
diff --git a/libjava/java/security/interfaces/DSAPublicKey.java b/libjava/java/security/interfaces/DSAPublicKey.java
new file mode 100644
index 0000000..48949de
--- /dev/null
+++ b/libjava/java/security/interfaces/DSAPublicKey.java
@@ -0,0 +1,27 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.security.interfaces;
+import java.security.PublicKey;
+import java.math.BigInteger;
+
+/**
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 1, 2000.
+ */
+
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
+public interface DSAPublicKey extends DSAKey, PublicKey
+{
+ public static final long serialVersionUID;
+
+ public BigInteger getY();
+}
diff --git a/libjava/java/security/interfaces/RSAPrivateCrtKey.java b/libjava/java/security/interfaces/RSAPrivateCrtKey.java
new file mode 100644
index 0000000..cca294a
--- /dev/null
+++ b/libjava/java/security/interfaces/RSAPrivateCrtKey.java
@@ -0,0 +1,30 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.security.interfaces;
+import java.math.BigInteger;
+
+/**
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 1, 2000.
+ */
+
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
+// JDK1.2
+public interface RSAPrivateCrtKey extends RSAPrivateKey
+{
+ public BigInteger getPublicExponent();
+ public BigInteger getPrimeP();
+ public BigInteger getPrimeQ();
+ public BigInteger getPrimeExponentP();
+ public BigInteger getPrimeExponentQ();
+ public BigInteger getCrtCoefficient();
+}
diff --git a/libjava/java/security/interfaces/RSAPrivateKey.java b/libjava/java/security/interfaces/RSAPrivateKey.java
new file mode 100644
index 0000000..4c16b05
--- /dev/null
+++ b/libjava/java/security/interfaces/RSAPrivateKey.java
@@ -0,0 +1,27 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.security.interfaces;
+import java.security.PrivateKey;
+import java.math.BigInteger;
+
+/**
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 1, 2000.
+ */
+
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
+// JDK1.2
+public interface RSAPrivateKey extends PrivateKey
+{
+ public BigInteger getModulus();
+ public BigInteger getPrivateExponent();
+}
diff --git a/libjava/java/security/interfaces/RSAPublicKey.java b/libjava/java/security/interfaces/RSAPublicKey.java
new file mode 100644
index 0000000..0bee88d
--- /dev/null
+++ b/libjava/java/security/interfaces/RSAPublicKey.java
@@ -0,0 +1,27 @@
+/* Copyright (C) 2000 Free Software Foundation
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+package java.security.interfaces;
+import java.security.PublicKey;
+import java.math.BigInteger;
+
+/**
+ * @author Warren Levy <warrenl@cygnus.com>
+ * @date February 1, 2000.
+ */
+
+/* Written using on-line Java Platform 1.2 API Specification.
+ * Status: Believed complete and correct.
+ */
+
+// JDK1.2
+public interface RSAPublicKey extends PublicKey
+{
+ public BigInteger getModulus();
+ public BigInteger getPublicExponent();
+}