01: package org.bouncycastle.jce.spec;
02:
03: import org.bouncycastle.math.ec.ECPoint;
04:
05: /**
06: * Elliptic Curve public key specification
07: */
08: public class ECPublicKeySpec extends ECKeySpec {
09: private ECPoint q;
10:
11: /**
12: * base constructor
13: *
14: * @param q the public point on the curve.
15: * @param spec the domain parameters for the curve.
16: */
17: public ECPublicKeySpec(ECPoint q, ECParameterSpec spec) {
18: super (spec);
19:
20: this .q = q;
21: }
22:
23: /**
24: * return the public point q
25: */
26: public ECPoint getQ() {
27: return q;
28: }
29: }
|