public class

ECPoint

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

Class Overview

A Point on an Elliptic Curve in barycentric (or affine) coordinates.

Summary

Constants
ECPoint POINT_INFINITY The point on an Elliptic Curve at infinity.
Public Constructors
ECPoint(BigInteger affineX, BigInteger affineY)
Creates a new point at the specified coordinates.
Public Methods
boolean equals(Object other)
Returns whether the specified object and this elliptic curve point are equal.
BigInteger getAffineX()
Returns the x-coordinate.
BigInteger getAffineY()
Returns the y-coordinate.
int hashCode()
Returns the hashcode of this elliptic curve point.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final ECPoint POINT_INFINITY

Since: API Level 1

The point on an Elliptic Curve at infinity.

Public Constructors

public ECPoint (BigInteger affineX, BigInteger affineY)

Since: API Level 1

Creates a new point at the specified coordinates.

Parameters
affineX the x-coordinate.
affineY the y-coordinate.

Public Methods

public boolean equals (Object other)

Since: API Level 1

Returns whether the specified object and this elliptic curve point are equal.

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

public BigInteger getAffineX ()

Since: API Level 1

Returns the x-coordinate.

Returns
  • the x-coordinate, or null for the infinite point.

public BigInteger getAffineY ()

Since: API Level 1

Returns the y-coordinate.

Returns
  • the y-coordinate, or null fot the infinite point.

public int hashCode ()

Since: API Level 1

Returns the hashcode of this elliptic curve point.

Returns
  • the hashcode of this elliptic curve point.