aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/DHPublicKey.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/DHPublicKey.java')
-rw-r--r--libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/DHPublicKey.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/DHPublicKey.java b/libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/DHPublicKey.java
new file mode 100644
index 000000000..3d395afa4
--- /dev/null
+++ b/libraries/spongycastle/jce/src/main/java/javax/crypto/interfaces/DHPublicKey.java
@@ -0,0 +1,21 @@
+package javax.crypto.interfaces;
+
+import java.math.BigInteger;
+import java.security.PublicKey;
+
+/**
+ * The interface to a Diffie-Hellman public key.
+ *
+ * @see DHKey
+ * @see DHPrivateKey
+ */
+public abstract interface DHPublicKey
+ extends DHKey, PublicKey
+{
+ /**
+ * Returns the public value, <code>y</code>.
+ *
+ * @return the public value, <code>y</code>
+ */
+ public BigInteger getY();
+}