java.lang.Object | |
↳ | java.security.spec.EllipticCurve |
This immutable class holds the necessary values needed to represent an elliptic curve.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an elliptic curve with the specified elliptic field
field and the coefficients a and
b . | |||||||||||
Creates an elliptic curve with the specified elliptic field
field , the coefficients a and
b , and the seed used for curve generation. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares this elliptic curve for equality with the
specified object.
| |||||||||||
Returns the first coefficient
a of the
elliptic curve. | |||||||||||
Returns the second coefficient
b of the
elliptic curve. | |||||||||||
Returns the finite field
field that this
elliptic curve is over. | |||||||||||
Returns the seeding bytes
seed used
during curve generation. | |||||||||||
Returns a hash code value for this elliptic curve.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates an elliptic curve with the specified elliptic field
field
and the coefficients a
and
b
.
field | the finite field that this elliptic curve is over. |
---|---|
a | the first coefficient of this elliptic curve. |
b | the second coefficient of this elliptic curve. |
NullPointerException | if field ,
a , or b is null. |
---|---|
IllegalArgumentException | if a
or b is not null and not in field .
|
Creates an elliptic curve with the specified elliptic field
field
, the coefficients a
and
b
, and the seed
used for curve generation.
field | the finite field that this elliptic curve is over. |
---|---|
a | the first coefficient of this elliptic curve. |
b | the second coefficient of this elliptic curve. |
seed | the bytes used during curve generation for later validation. Contents of this array are copied to protect against subsequent modification. |
NullPointerException | if field ,
a , or b is null. |
---|---|
IllegalArgumentException | if a
or b is not null and not in field .
|
Compares this elliptic curve for equality with the specified object.
obj | the object to be compared. |
---|
obj
is an instance of
EllipticCurve and the field, A, B, and seeding bytes
match, false otherwise.
Returns the first coefficient a
of the
elliptic curve.
a
.
Returns the second coefficient b
of the
elliptic curve.
b
.
Returns the finite field field
that this
elliptic curve is over.
field
that this curve
is over.
Returns the seeding bytes seed
used
during curve generation. May be null if not specified.
seed
. A new
array is returned each time this method is called.
Returns a hash code value for this elliptic curve.