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 EllipticCurve: the elliptic curve.
generator ECPoint: the generator (or base point).
order BigInteger: the order of the generator.
cofactor int: 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
int the cofactor.

public EllipticCurve getCurve ()

Added in API level 1

Returns the elliptic curve.

Returns
EllipticCurve the elliptic curve.

public ECPoint getGenerator ()

Added in API level 1

Returns the generator (or base point).

Returns
ECPoint the generator (or base point).

public BigInteger getOrder ()

Added in API level 1

Returns the order of the generator.

Returns
BigInteger the order of the generator.