Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

ECFieldFp

extends Object
implements ECField
java.lang.Object
   ↳ java.security.spec.ECFieldFp

Class Overview

The parameters specifying a prime finite field of an elliptic curve.

Summary

Public Constructors
ECFieldFp ( BigInteger p)
Creates a new prime finite field of an elliptic curve with the specified prime p .
Public Methods
boolean equals ( Object obj)
Returns whether the specified object is equal to this finite field.
int getFieldSize ()
Returns the size of the finite field (in bits).
BigInteger getP ()
Returns the prime value p for this finite field.
int hashCode ()
Returns the hashcode value for this finite field.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.spec.ECField

Public Constructors

public ECFieldFp ( BigInteger p)

Added in API level 1

Creates a new prime finite field of an elliptic curve with the specified prime p .

Parameters
p the prime value p .
Throws
IllegalArgumentException if p <= zero .

Public Methods

public boolean equals ( Object obj)

Added in API level 1

Returns whether the specified object is equal to this finite field.

Parameters
obj the object to compare to this finite field.
Returns
  • true if the specified object is equal to this finite field, otherwise false .

public int getFieldSize ()

Added in API level 1

Returns the size of the finite field (in bits).

Returns
  • the size of the finite field (in bits).

public BigInteger getP ()

Added in API level 1

Returns the prime value p for this finite field.

Returns
  • the prime value p for this finite field.

public int hashCode ()

Added in API level 1

Returns the hashcode value for this finite field.

Returns
  • the hashcode value for this finite field.