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