Android APIs
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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ECParameterSpec (EllipticCurve curve, ECPoint generator, BigInteger order, int cofactor)

Added in API level 1

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 ()

Added in API level 1

Returns the cofactor.

Returns
  • the cofactor.

public EllipticCurve getCurve ()

Added in API level 1

Returns the elliptic curve.

Returns
  • the elliptic curve.

public ECPoint getGenerator ()

Added in API level 1

Returns the generator (or base point).

Returns
  • the generator (or base point).

public BigInteger getOrder ()

Added in API level 1

Returns the order of the generator.

Returns
  • the order of the generator.