ECPublicKeySpec.java revision e6bf3e8dfa2804891a82075cb469b736321b4827
1package org.bouncycastle.jce.spec;
2
3import org.bouncycastle.math.ec.ECPoint;
4
5/**
6 * Elliptic Curve public key specification
7 */
8public 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     */
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     */
31    public ECPoint getQ()
32    {
33        return q;
34    }
35}
36