Skip to content

Most visited

Recently visited

navigation
Added in API level 1

EllipticCurve

public class EllipticCurve
extends Object

java.lang.Object
   ↳ java.security.spec.EllipticCurve


An Elliptic Curve with its necessary values.

Summary

Public constructors

EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed)

Creates a new EllipticCurve with the specified field, coefficients and seed.

EllipticCurve(ECField field, BigInteger a, BigInteger b)

Creates a new EllipticCurve with the specified field and coefficients.

Public methods

boolean equals(Object other)

Returns whether the specified object equals to this elliptic curve.

BigInteger getA()

Returns the coefficient a of this elliptic curve.

BigInteger getB()

Returns the coefficient b of this elliptic curve.

ECField getField()

Returns the finite field of this elliptic curve.

byte[] getSeed()

Returns a copy of the seed that was used to generate this elliptic curve.

int hashCode()

Returns the hashcode of this elliptic curve.

Inherited methods

From class java.lang.Object

Public constructors

EllipticCurve

Added in API level 1
EllipticCurve (ECField field, 
                BigInteger a, 
                BigInteger b, 
                byte[] seed)

Creates a new EllipticCurve with the specified field, coefficients and seed.

Parameters
field ECField: the finite field of this elliptic curve.
a BigInteger: the coefficient a.
b BigInteger: the coefficient b.
seed byte: the seed used for the generation of the curve.
Throws
IllegalArgumentException if the specified coefficients are not in the specified field.

EllipticCurve

Added in API level 1
EllipticCurve (ECField field, 
                BigInteger a, 
                BigInteger b)

Creates a new EllipticCurve with the specified field and coefficients.

Parameters
field ECField: the finite field of this elliptic curve.
a BigInteger: the coefficient a.
b BigInteger: the coefficient b.
Throws
IllegalArgumentException if the specified coefficients are not in the specified field.

Public methods

equals

Added in API level 1
boolean equals (Object other)

Returns whether the specified object equals to this elliptic curve.

Parameters
other Object: the object to compare.
Returns
boolean true if the specified object is equal to this elliptic curve, otherwise false.

getA

Added in API level 1
BigInteger getA ()

Returns the coefficient a of this elliptic curve.

Returns
BigInteger the coefficient a of this elliptic curve.

getB

Added in API level 1
BigInteger getB ()

Returns the coefficient b of this elliptic curve.

Returns
BigInteger the coefficient b of this elliptic curve.

getField

Added in API level 1
ECField getField ()

Returns the finite field of this elliptic curve.

Returns
ECField the finite field of this elliptic curve.

getSeed

Added in API level 1
byte[] getSeed ()

Returns a copy of the seed that was used to generate this elliptic curve.

Returns
byte[] a copy of the seed that was used to generate this elliptic curve, or null if none specified.

hashCode

Added in API level 1
int hashCode ()

Returns the hashcode of this elliptic curve.

Returns
int the hashcode of this elliptic curve.
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.