Save This Page
Home » openjdk-7 » java » security » spec » [javadoc | source]
java.security.spec
public class: EllipticCurve [javadoc | source]
java.lang.Object
   java.security.spec.EllipticCurve
This immutable class holds the necessary values needed to represent an elliptic curve.
Constructor:
 public EllipticCurve(ECField field,
    BigInteger a,
    BigInteger b) 
    Creates an elliptic curve with the specified elliptic field field and the coefficients a and b.
    Parameters:
    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.
    Throws:
    NullPointerException - if field, a, or b is null.
    IllegalArgumentException - if a or b is not null and not in field.
    exception: NullPointerException - if field, a, or b is null.
    exception: IllegalArgumentException - if a or b is not null and not in field.
 public EllipticCurve(ECField field,
    BigInteger a,
    BigInteger b,
    byte[] seed) 
    Creates an elliptic curve with the specified elliptic field field, the coefficients a and b, and the seed used for curve generation.
    Parameters:
    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.
    Throws:
    NullPointerException - if field, a, or b is null.
    IllegalArgumentException - if a or b is not null and not in field.
    exception: NullPointerException - if field, a, or b is null.
    exception: IllegalArgumentException - if a or b is not null and not in field.
Method from java.security.spec.EllipticCurve Summary:
equals,   getA,   getB,   getField,   getSeed,   hashCode
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.security.spec.EllipticCurve Detail:
 public boolean equals(Object obj) 
    Compares this elliptic curve for equality with the specified object.
 public BigInteger getA() 
    Returns the first coefficient a of the elliptic curve.
 public BigInteger getB() 
    Returns the second coefficient b of the elliptic curve.
 public ECField getField() 
    Returns the finite field field that this elliptic curve is over.
 public byte[] getSeed() 
    Returns the seeding bytes seed used during curve generation. May be null if not specified.
 public int hashCode() 
    Returns a hash code value for this elliptic curve.