|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.spec.ECPoint
public class 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.
Field Summary | |
---|---|
static ECPoint |
POINT_INFINITY
This defines the point at infinity. |
Constructor Summary | |
---|---|
ECPoint(BigInteger x,
BigInteger y)
Creates an ECPoint from the specified affine x-coordinate x and affine y-coordinate y . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compares this elliptic curve point for equality with the specified object. |
BigInteger |
getAffineX()
Returns the affine x-coordinate x . |
BigInteger |
getAffineY()
Returns the affine y-coordinate y . |
int |
hashCode()
Returns a hash code value for this elliptic curve point. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ECPoint POINT_INFINITY
Constructor Detail |
---|
public ECPoint(BigInteger x, BigInteger y)
x
and affine y-coordinate y
.
x
- the affine x-coordinate.y
- the affine y-coordinate.
NullPointerException
- if x
or
y
is null.Method Detail |
---|
public BigInteger getAffineX()
x
.
Note: POINT_INFINITY has a null affine x-coordinate.
public BigInteger getAffineY()
y
.
Note: POINT_INFINITY has a null affine y-coordinate.
public boolean equals(Object obj)
equals
in class Object
obj
- the object to be compared.
obj
is an instance of
ECPoint and the affine coordinates match, false otherwise.Object.hashCode()
,
Hashtable
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
Hashtable
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.