• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.bouncycastle.jce.spec;
2 
3 import org.bouncycastle.math.ec.ECPoint;
4 
5 /**
6  * Elliptic Curve public key specification
7  */
8 public class ECPublicKeySpec
9     extends ECKeySpec
10 {
11     private ECPoint    q;
12 
13     /**
14      * base constructor
15      *
16      * @param q the public point on the curve.
17      * @param spec the domain parameters for the curve.
18      */
ECPublicKeySpec( ECPoint q, ECParameterSpec spec)19     public ECPublicKeySpec(
20         ECPoint         q,
21         ECParameterSpec spec)
22     {
23         super(spec);
24 
25         this.q = q;
26     }
27 
28     /**
29      * return the public point q
30      */
getQ()31     public ECPoint getQ()
32     {
33         return q;
34     }
35 }
36