diff options
Diffstat (limited to 'bcprov/src/main/java/org/bouncycastle/jce/spec/ECPublicKeySpec.java')
-rw-r--r-- | bcprov/src/main/java/org/bouncycastle/jce/spec/ECPublicKeySpec.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/bcprov/src/main/java/org/bouncycastle/jce/spec/ECPublicKeySpec.java b/bcprov/src/main/java/org/bouncycastle/jce/spec/ECPublicKeySpec.java new file mode 100644 index 0000000..debab00 --- /dev/null +++ b/bcprov/src/main/java/org/bouncycastle/jce/spec/ECPublicKeySpec.java @@ -0,0 +1,35 @@ +package org.bouncycastle.jce.spec; + +import org.bouncycastle.math.ec.ECPoint; + +/** + * Elliptic Curve public key specification + */ +public class ECPublicKeySpec + extends ECKeySpec +{ + private ECPoint q; + + /** + * base constructor + * + * @param q the public point on the curve. + * @param spec the domain parameters for the curve. + */ + public ECPublicKeySpec( + ECPoint q, + ECParameterSpec spec) + { + super(spec); + + this.q = q; + } + + /** + * return the public point q + */ + public ECPoint getQ() + { + return q; + } +} |