| 
 | 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.Objectjava.security.spec.EllipticCurve
public class EllipticCurve
This immutable class holds the necessary values needed to represent an elliptic curve.
ECField, 
ECFieldFp, 
ECFieldF2m| Constructor Summary | |
|---|---|
| EllipticCurve(ECField field,
              BigInteger a,
              BigInteger b)Creates an elliptic curve with the specified elliptic field fieldand the coefficientsaandb. | |
| EllipticCurve(ECField field,
              BigInteger a,
              BigInteger b,
              byte[] seed)Creates an elliptic curve with the specified elliptic field field, the coefficientsaandb, and theseedused for curve generation. | |
| Method Summary | |
|---|---|
|  boolean | equals(Object obj)Compares this elliptic curve for equality with the specified object. | 
|  BigInteger | getA()Returns the first coefficient aof the
 elliptic curve. | 
|  BigInteger | getB()Returns the second coefficient bof the
 elliptic curve. | 
|  ECField | getField()Returns the finite field fieldthat this 
 elliptic curve is over. | 
|  byte[] | getSeed()Returns the seeding bytes seedused 
 during curve generation. | 
|  int | hashCode()Returns a hash code value for this elliptic curve. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EllipticCurve(ECField field,
                     BigInteger a,
                     BigInteger b)
field and the coefficients a and
 b.
field - the finite field that this elliptic curve is over.a - the first coefficient of this elliptic curve.b - the second coefficient of this elliptic curve.
NullPointerException - if field,
 a, or b is null.
IllegalArgumentException - if a
 or b is not null and not in field.
public EllipticCurve(ECField field,
                     BigInteger a,
                     BigInteger b,
                     byte[] seed)
field, the coefficients a and
 b, and the seed used for curve generation.
field - the finite field that this elliptic curve is over.a - the first coefficient of this elliptic curve.b - the second coefficient of this elliptic curve.seed - the bytes used during curve generation for later
 validation. Contents of this array are copied to protect against
 subsequent modification.
NullPointerException - if field,
 a, or b is null.
IllegalArgumentException - if a
 or b is not null and not in field.| Method Detail | 
|---|
public ECField getField()
field that this 
 elliptic curve is over.
field that this curve 
 is over.public BigInteger getA()
a of the
 elliptic curve.
a.public BigInteger getB()
b of the
 elliptic curve.
b.public byte[] getSeed()
seed used 
 during curve generation. May be null if not specified.
seed. A new
 array is returned each time this method is called.public boolean equals(Object obj)
equals in class Objectobj - the object to be compared.
obj is an instance of
 EllipticCurve and the field, A, B, and seeding bytes 
 match, false otherwise.Object.hashCode(), 
Hashtablepublic int hashCode()
hashCode in class ObjectObject.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.