org.gudy.bouncycastle.jce.spec
Class ECParameterSpec

java.lang.Object
  extended by org.gudy.bouncycastle.jce.spec.ECParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec
Direct Known Subclasses:
ECNamedCurveParameterSpec

public class ECParameterSpec
extends Object
implements AlgorithmParameterSpec

basic domain parameters for an Elliptic Curve public or private key.


Constructor Summary
ECParameterSpec(ECCurve curve, ECPoint G, BigInteger n)
           
ECParameterSpec(ECCurve curve, ECPoint G, BigInteger n, BigInteger h)
           
ECParameterSpec(ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed)
           
 
Method Summary
 ECCurve getCurve()
          return the curve along which the base point lies.
 ECPoint getG()
          return the base point we are using for these domain parameters.
 BigInteger getH()
          return the cofactor H to the order of G.
 BigInteger getN()
          return the order N of G
 byte[] getSeed()
          return the seed used to generate this curve (if available).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECParameterSpec

public ECParameterSpec(ECCurve curve,
                       ECPoint G,
                       BigInteger n)

ECParameterSpec

public ECParameterSpec(ECCurve curve,
                       ECPoint G,
                       BigInteger n,
                       BigInteger h)

ECParameterSpec

public ECParameterSpec(ECCurve curve,
                       ECPoint G,
                       BigInteger n,
                       BigInteger h,
                       byte[] seed)
Method Detail

getCurve

public ECCurve getCurve()
return the curve along which the base point lies.


getG

public ECPoint getG()
return the base point we are using for these domain parameters.


getN

public BigInteger getN()
return the order N of G


getH

public BigInteger getH()
return the cofactor H to the order of G.


getSeed

public byte[] getSeed()
return the seed used to generate this curve (if available).