Class ECPoint

java.lang.Object
java.security.spec.ECPoint

public class ECPoint
extends Object
A Point on an Elliptic Curve in barycentric (or affine) coordinates.
  • Field Details

    • POINT_INFINITY

      public static final ECPoint POINT_INFINITY
      The point on an Elliptic Curve at infinity.
  • Constructor Details

    • ECPoint

      public ECPoint​(BigInteger affineX, BigInteger affineY)
      Creates a new point at the specified coordinates.
      Parameters:
      affineX - the x-coordinate.
      affineY - the y-coordinate.
  • Method Details

    • getAffineX

      public BigInteger getAffineX()
      Returns the x-coordinate.
      Returns:
      the x-coordinate, or null for the infinite point.
    • getAffineY

      public BigInteger getAffineY()
      Returns the y-coordinate.
      Returns:
      the y-coordinate, or null fot the infinite point.
    • equals

      public boolean equals​(Object other)
      Returns whether the specified object and this elliptic curve point are equal.
      Overrides:
      equals in class Object
      Parameters:
      other - the object to compare.
      Returns:
      true if the specified object and this elliptic curve point are equal, otherwise false.
      See Also:
      Object.hashCode()
    • hashCode

      public int hashCode()
      Returns the hashcode of this elliptic curve point.
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode of this elliptic curve point.
      See Also:
      Object.equals(java.lang.Object)