~brian-thomason/+junk/bouncycastle

« back to all changes in this revision

Viewing changes to src/org/bouncycastle/jce/spec/ECPrivateKeySpec.java

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:20:32 UTC
  • Revision ID: brian.thomason@canonical.com-20111220172032-rdtm13jgdxtksacr
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.bouncycastle.jce.spec;
 
2
 
 
3
import java.math.BigInteger;
 
4
 
 
5
/**
 
6
 * Elliptic Curve private key specification.
 
7
 */
 
8
public 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
}