com.entrust.toolkit.security.crypto.ec insteadpublic class ECPointFactory
extends java.lang.Object
ECPointFactory class contains methods to retrieve an
instance of the ECPoint abstract class.| Constructor and Description |
|---|
ECPointFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static ECPoint |
getInstance(ASN1Object object,
EllipticCurve curve)
Deprecated.
Parses an ASN.1 object to return an instance of
ECPoint. |
static ECPoint |
getInstance(EllipticCurve curve)
Deprecated.
Returns the point at infinity corresponding to the given curve.
|
static ECPoint |
getInstance(FieldElement x,
FieldElement y,
EllipticCurve curve)
Deprecated.
Returns an instance of the
ECPoint class given two field
elements and an elliptic curve as arguments. |
public static ECPoint getInstance(FieldElement x, FieldElement y, EllipticCurve curve) throws java.lang.IllegalArgumentException
ECPoint class given two field
elements and an elliptic curve as arguments.x - a FieldElement objecty - a FieldElement objectcurve - an EllipticCurve object
ECPoint objectjava.lang.IllegalArgumentException - if the field type is neither GFp nor
PolynomialFieldpublic static ECPoint getInstance(EllipticCurve curve)
curve - an EllipticCurve objectECPoint object that represents the point at
infinityjava.lang.IllegalArgumentException - if the field type is neither GFp nor
PolynomialFieldpublic static ECPoint getInstance(ASN1Object object, EllipticCurve curve) throws CodingException, java.lang.IllegalArgumentException
ECPoint.
The method uses the algorithm specified in section 4.3.6 of the X9.62 specification to parse the ASN.1 object.
object - an ASN1Object objectcurve - an EllipticCurve objectECPoint object.CodingException - if the ASN1Object is illformed, or if the
ECPoint is compressedjava.lang.IllegalArgumentException - if the parsed point form the ASN1Object is invalid
on the given curve, or if the parsed order is incorrect