Top Description Fields Constructors Methods
java.security.spec

public Class ECPoint

extends Object
Class Inheritance
Imports
java.math.BigInteger

This immutable class represents a point on an elliptic curve (EC) in affine coordinates. Other coordinate systems can extend this class to represent this point in other coordinates.
Author
Valerie Peng
Since
1.5

Field Summary

Modifier and TypeField and Description
public static final ECPoint
POINT_INFINITY

This defines the point at infinity.

private final BigInteger
x

private final BigInteger
y

Constructor Summary

AccessConstructor and Description
private
public
ECPoint(BigInteger
the affine x-coordinate.
x
,
BigInteger
the affine y-coordinate.
y
)

Creates an ECPoint from the specified affine x-coordinate x and affine y-coordinate y.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if obj is an instance of ECPoint and the affine coordinates match, false otherwise.
equals
(Object
the object to be compared.
obj
)

Overrides java.lang.Object.equals.

Compares this elliptic curve point for equality with the specified object.

public BigInteger

Returns:

the affine x-coordinate.
getAffineX
()

Returns the affine x-coordinate x.

public BigInteger

Returns:

the affine y-coordinate.
getAffineY
()

Returns the affine y-coordinate y.

public int

Returns:

the hash code value for this elliptic curve point
hashCode
()

Overrides java.lang.Object.hashCode.

Returns the hash code value for this elliptic curve point.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

POINT_INFINITYback to summary
public static final ECPoint POINT_INFINITY

This defines the point at infinity.

xback to summary
private final BigInteger x
yback to summary
private final BigInteger y

Constructor Detail

ECPointback to summary
private ECPoint()
ECPointback to summary
public ECPoint(BigInteger x, BigInteger y)

Creates an ECPoint from the specified affine x-coordinate x and affine y-coordinate y.

Parameters
x:BigInteger

the affine x-coordinate.

y:BigInteger

the affine y-coordinate.

Exceptions
NullPointerException:
if x or y is null.

Method Detail

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Compares this elliptic curve point for equality with the specified object.

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.

Annotations
@Override
getAffineXback to summary
public BigInteger getAffineX()

Returns the affine x-coordinate x.

Note

POINT_INFINITY has a null affine x-coordinate.

Returns:BigInteger

the affine x-coordinate.

getAffineYback to summary
public BigInteger getAffineY()

Returns the affine y-coordinate y.

Note

POINT_INFINITY has a null affine y-coordinate.

Returns:BigInteger

the affine y-coordinate.

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns the hash code value for this elliptic curve point.

Returns:int

the hash code value for this elliptic curve point

Annotations
@Override