ECParameterSpec - JRE Emulation | JRE Emulation
public class

ECParameterSpec

extends Object
implements AlgorithmParameterSpec
java.lang.Object
   ↳ java.security.spec.ECParameterSpec

Class Overview

The parameter specification used with Elliptic Curve Cryptography (ECC).

Summary

Public Constructors
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.
Public Methods
int getCofactor()
Returns the cofactor.
EllipticCurve getCurve()
Returns the elliptic curve.
ECPoint getGenerator()
Returns the generator (or base point).
BigInteger getOrder()
Returns the order of the generator.
Inherited Methods
[Expand]
From class java.lang.Object

Public Constructors

public 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.

Parameters
curve the elliptic curve.
generator the generator (or base point).
order the order of the generator.
cofactor the co-factor.
Throws
IllegalArgumentException if order <= zero or cofactor <= zero.

Public Methods

public int getCofactor ()

Returns the cofactor.

Returns
  • the cofactor.

public EllipticCurve getCurve ()

Returns the elliptic curve.

Returns
  • the elliptic curve.

public ECPoint getGenerator ()

Returns the generator (or base point).

Returns
  • the generator (or base point).

public BigInteger getOrder ()

Returns the order of the generator.

Returns
  • the order of the generator.