Added in API level 1

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

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

Public methods
open Boolean
equals(other: Any?)

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

open BigInteger!

Returns the affine x-coordinate x.

open BigInteger!

Returns the affine y-coordinate y.

open Int

Returns a hash code value for this elliptic curve point.

Properties
static ECPoint!

This defines the point at infinity.

Public constructors

ECPoint

Added in API level 1
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 x or y is null.

Public methods

equals

Added in API level 1
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 obj is an instance of ECPoint and the affine coordinates match, false otherwise.

getAffineX

Added in API level 1
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

Added in API level 1
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

Added in API level 1
open fun hashCode(): Int

Returns a hash code value for this elliptic curve point.

Return
Int a hash code value.

Properties

POINT_INFINITY

Added in API level 1
static val POINT_INFINITY: ECPoint!

This defines the point at infinity.