public class ECPoint
extends Object
| java.lang.Object | |
| java.security.spec.ECPoint | |
这个不可变的类表示仿射坐标中的椭圆曲线(EC)上的点。 其他坐标系可以扩展这个类来在其他坐标中表示这个点。
Fields |
|
|---|---|
public static final ECPoint |
POINT_INFINITY 这定义了无穷远处的点。 |
Public constructors |
|
|---|---|
ECPoint(BigInteger x, BigInteger y) 从指定的仿射x坐标 |
|
公共方法(Public methods) |
|
|---|---|
boolean |
equals(Object obj) 将这个椭圆曲线点与指定对象进行相等比较。 |
BigInteger |
getAffineX() 返回仿射x坐标 |
BigInteger |
getAffineY() 返回仿射的y坐标 |
int |
hashCode() 返回此椭圆曲线点的哈希码值。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
ECPoint (BigInteger x, BigInteger y)
从指定的仿射x坐标 x创建 x并仿射y坐标 y 。
| 参数(Parameters) | |
|---|---|
x |
BigInteger: the affine x-coordinate. |
y |
BigInteger: the affine y-coordinate. |
| 抛出异常(Throws) | |
|---|---|
NullPointerException |
if x or y is null. |
boolean equals (Object obj)
将这个椭圆曲线点与指定对象进行相等比较。
| 参数(Parameters) | |
|---|---|
obj |
Object: the object to be compared. |
| 返回(Returns) | |
|---|---|
boolean |
true if obj is an instance of ECPoint and the affine coordinates match, false otherwise. |
BigInteger getAffineX ()
返回仿射x坐标x 。 注意:POINT_INFINITY具有空仿射x坐标。
| 返回(Returns) | |
|---|---|
BigInteger |
the affine x-coordinate. |
BigInteger getAffineY ()
返回仿射y坐标y 。 注意:POINT_INFINITY具有空仿射y坐标。
| 返回(Returns) | |
|---|---|
BigInteger |
the affine y-coordinate. |