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
All Methods Instance Methods Concrete Methods 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 Detail
-
POINT_INFINITY
public static final ECPoint POINT_INFINITY
The point on an Elliptic Curve at infinity.
-
-
Constructor Detail
-
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 Detail
-
getAffineX
public BigInteger getAffineX()
Returns the x-coordinate.- Returns:
- the x-coordinate, or
nullfor the infinite point.
-
getAffineY
public BigInteger getAffineY()
Returns the y-coordinate.- Returns:
- the y-coordinate, or
nullfot the infinite point.
-
equals
public boolean equals(Object other)
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)
-
-