public class ECParameterSpec extends Object implements AlgorithmParameterSpec
| Constructor and Description |
|---|
ECParameterSpec(EllipticCurve curve,
ECPoint generator,
BigInteger order,
int cofactor)
Creates a new
ECParameterSpec with the specified elliptic curve,
the base point, the order of the generator (or base point) and the
co-factor. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCofactor()
Returns the
cofactor. |
EllipticCurve |
getCurve()
Returns the elliptic curve.
|
String |
getCurveName()
Returns the name of the curve if this is a named curve.
|
ECPoint |
getGenerator()
Returns the generator (or base point).
|
BigInteger |
getOrder()
Returns the order of the generator.
|
void |
setCurveName(String curveName)
Used to set the curve name if available.
|
public ECParameterSpec(EllipticCurve curve, ECPoint generator, BigInteger order, int cofactor)
ECParameterSpec with the specified elliptic curve,
the base point, the order of the generator (or base point) and the
co-factor.curve - the elliptic curve.generator - the generator (or base point).order - the order of the generator.cofactor - the co-factor.IllegalArgumentException - if order <= zero or cofactor <= zero.public int getCofactor()
cofactor.cofactor.public EllipticCurve getCurve()
public ECPoint getGenerator()
public BigInteger getOrder()
public void setCurveName(String curveName)
public String getCurveName()
null if this is not known to be a named curve.