com.entrust.toolkit.security.crypto.ec insteadpublic abstract class ECPoint
extends java.lang.Object
ECPoint class is a means of representing an point
on a elliptic curve.
The class contains one non-abstract method for (scalar) multiplication on a elliptic curve a common operation on curves over different field types.
| Constructor and Description |
|---|
ECPoint()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ECPoint |
add(ECPoint point)
Deprecated.
Returns the sum of this point and the given point on
the curve.
|
abstract ECPoint |
doublePoint()
Deprecated.
Returns the double point (two times the calling point) on the curve.
|
abstract boolean |
equals(java.lang.Object object)
Deprecated.
Determines whether the
object argument equals the calling
point. |
abstract EllipticCurve |
getCurve()
Deprecated.
Returns the curve linked to the calling point.
|
abstract FieldElement |
getXCoordinate()
Deprecated.
Returns the x-coordinate of the calling point.
|
abstract FieldElement |
getYCoordinate()
Deprecated.
Returns the y-coordinate of the calling point.
|
abstract boolean |
isPointAtInfinity()
Deprecated.
Determines whether or not the calling point is the point at infinity.
|
ECPoint |
multiply(java.math.BigInteger a)
Deprecated.
Returns the scalar product of the calling point and the given number on
the curve.
|
abstract ASN1Object |
toASN1Object()
Deprecated.
Returns the curve point as an instance of
ASN1Object. |
abstract java.lang.String |
toString()
Deprecated.
Returns the
String representation of the calling point. |
public abstract ASN1Object toASN1Object()
ASN1Object.ASN1Objectpublic abstract ECPoint add(ECPoint point)
public abstract ECPoint doublePoint()
public ECPoint multiply(java.math.BigInteger a) throws java.lang.IllegalArgumentException
a - a BigInteger
number must be positive
or 0.java.lang.IllegalArgumentException - if number is negative.public abstract boolean isPointAtInfinity()
true if the calling point is the point at infinity
false otherwisepublic abstract EllipticCurve getCurve()
EllipticCurvepublic abstract FieldElement getXCoordinate()
FieldElement object.public abstract FieldElement getYCoordinate()
FieldElement object.public abstract boolean equals(java.lang.Object object)
object argument equals the calling
point.equals in class java.lang.Objecttrue if both point are equal false
otherwisepublic abstract java.lang.String toString()
String representation of the calling point.toString in class java.lang.ObjectString representing the calling point