Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ECParameterSpec

public class ECParameterSpec
extends Object implements AlgorithmParameterSpec

java.lang.Object
   ↳ java.security.spec.ECParameterSpec


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

From class java.lang.Object

Public constructors

ECParameterSpec

Added in API level 1
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 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

getCofactor

Added in API level 1
int getCofactor ()

Returns the cofactor.

Returns
int the cofactor.

getCurve

Added in API level 1
EllipticCurve getCurve ()

Returns the elliptic curve.

Returns
EllipticCurve the elliptic curve.

getGenerator

Added in API level 1
ECPoint getGenerator ()

Returns the generator (or base point).

Returns
ECPoint the generator (or base point).

getOrder

Added in API level 1
BigInteger getOrder ()

Returns the order of the generator.

Returns
BigInteger the order of the generator.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.