to top
Android APIs
public class

EllipticCurve

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

Class Overview

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

Public Constructors

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

Since: API Level 1

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

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

public EllipticCurve (ECField field, BigInteger a, BigInteger b)

Since: API Level 1

Creates a new EllipticCurve with the specified field and coefficients.

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

Public Methods

public boolean equals (Object other)

Since: API Level 1

Returns whether the specified object equals to this elliptic curve.

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

public BigInteger getA ()

Since: API Level 1

Returns the coefficient a of this elliptic curve.

Returns
  • the coefficient a of this elliptic curve.

public BigInteger getB ()

Since: API Level 1

Returns the coefficient b of this elliptic curve.

Returns
  • the coefficient b of this elliptic curve.

public ECField getField ()

Since: API Level 1

Returns the finite field of this elliptic curve.

Returns
  • the finite field of this elliptic curve.

public byte[] getSeed ()

Since: API Level 1

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

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

public int hashCode ()

Since: API Level 1

Returns the hashcode of this elliptic curve.

Returns
  • the hashcode of this elliptic curve.