Package java.security.spec
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 Summary
Fields Modifier and Type Field Description static ECPointPOINT_INFINITYThe point on an Elliptic Curve at infinity. -
Constructor Summary
Constructors Constructor Description ECPoint(BigInteger affineX, BigInteger affineY)Creates a new point at the specified coordinates. -
Method Summary
Modifier and Type Method Description booleanequals(Object other)Returns whether the specified object and this elliptic curve point are equal.BigIntegergetAffineX()Returns the x-coordinate.BigIntegergetAffineY()Returns the y-coordinate.inthashCode()Returns the hashcode of this elliptic curve point.
-
Field Details
-
POINT_INFINITY
The point on an Elliptic Curve at infinity.
-
-
Constructor Details
-
ECPoint
Creates a new point at the specified coordinates.- Parameters:
affineX- the x-coordinate.affineY- the y-coordinate.
-
-
Method Details
-
getAffineX
Returns the x-coordinate.- Returns:
- the x-coordinate, or
nullfor the infinite point.
-
getAffineY
Returns the y-coordinate.- Returns:
- the y-coordinate, or
nullfot the infinite point.
-
equals
Returns whether the specified object and this elliptic curve point are equal.- Overrides:
equalsin classObject- Parameters:
other- the object to compare.- Returns:
trueif the specified object and this elliptic curve point are equal, otherwisefalse.- See Also:
Object.hashCode()
-
hashCode
public int hashCode()Returns the hashcode of this elliptic curve point.- Overrides:
hashCodein classObject- Returns:
- the hashcode of this elliptic curve point.
- See Also:
Object.equals(java.lang.Object)
-