ECPoint
open class ECPoint
| kotlin.Any | |
| ↳ | java.security.spec.ECPoint | 
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.
Summary
| Public constructors | |
|---|---|
| ECPoint(x: BigInteger!, y: BigInteger!)Creates an ECPoint from the specified affine x-coordinate  | |
| Public methods | |
|---|---|
| open Boolean | Compares this elliptic curve point for equality with the specified object. | 
| open BigInteger! | Returns the affine x-coordinate  | 
| open BigInteger! | Returns the affine y-coordinate  | 
| open Int | hashCode()Returns a hash code value for this elliptic curve point. | 
| Properties | |
|---|---|
| static ECPoint! | This defines the point at infinity. | 
Public constructors
ECPoint
ECPoint(
x: BigInteger!,
y: BigInteger!)
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 | |
|---|---|
| java.lang.NullPointerException | if xoryis null. | 
Public methods
equals
open fun equals(other: Any?): Boolean
Compares this elliptic curve point for equality with the specified object.
| Parameters | |
|---|---|
| obj | the object to be compared. | 
| Return | |
|---|---|
| Boolean | true if objis an instance of ECPoint and the affine coordinates match, false otherwise. | 
getAffineX
open fun getAffineX(): BigInteger!
Returns the affine x-coordinate x. Note: POINT_INFINITY has a null affine x-coordinate.
| Return | |
|---|---|
| BigInteger! | the affine x-coordinate. | 
getAffineY
open fun getAffineY(): BigInteger!
Returns the affine y-coordinate y. Note: POINT_INFINITY has a null affine y-coordinate.
| Return | |
|---|---|
| BigInteger! | the affine y-coordinate. | 
hashCode
open fun hashCode(): Int
Returns a hash code value for this elliptic curve point.
| Return | |
|---|---|
| Int | a hash code value. | 
Properties
POINT_INFINITY
static val POINT_INFINITY: ECPoint!
This defines the point at infinity.
