1package org.bouncycastle.jce.spec; 2 3import java.math.BigInteger; 4 5/** 6 * Elliptic Curve private key specification. 7 */ 8public class ECPrivateKeySpec 9 extends ECKeySpec 10{ 11 private BigInteger d; 12 13 /** 14 * base constructor 15 * 16 * @param d the private number for the key. 17 * @param spec the domain parameters for the curve being used. 18 */ 19 public ECPrivateKeySpec( 20 BigInteger d, 21 ECParameterSpec spec) 22 { 23 super(spec); 24 25 this.d = d; 26 } 27 28 /** 29 * return the private number D 30 */ 31 public BigInteger getD() 32 { 33 return d; 34 } 35} 36