java.security.spec
Class ECParameterSpec

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.ECParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec

public class ECParameterSpec
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec

This immutable class specifies the set of domain parameters used with elliptic curve cryptography (ECC).

Since:
1.5
See Also:
AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec

Constructor Summary
ECParameterSpec sample code for java.security.spec.ECParameterSpec.ECParameterSpec(java.security.spec.EllipticCurve, java.security.spec.ECPoint, java.math.BigInteger, int) definition code for java.security.spec.ECParameterSpec.ECParameterSpec(java.security.spec.EllipticCurve, java.security.spec.ECPoint, java.math.BigInteger, int) (EllipticCurve sample code for java.security.spec.EllipticCurve definition code for java.security.spec.EllipticCurve  curve, ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint  g, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  n, int h)
          Creates elliptic curve domain parameters based on the specified values.
 
Method Summary
 int getCofactor sample code for java.security.spec.ECParameterSpec.getCofactor() definition code for java.security.spec.ECParameterSpec.getCofactor() ()
          Returns the cofactor.
 EllipticCurve sample code for java.security.spec.EllipticCurve definition code for java.security.spec.EllipticCurve getCurve sample code for java.security.spec.ECParameterSpec.getCurve() definition code for java.security.spec.ECParameterSpec.getCurve() ()
          Returns the elliptic curve that this parameter defines.
 ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint getGenerator sample code for java.security.spec.ECParameterSpec.getGenerator() definition code for java.security.spec.ECParameterSpec.getGenerator() ()
          Returns the generator which is also known as the base point.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getOrder sample code for java.security.spec.ECParameterSpec.getOrder() definition code for java.security.spec.ECParameterSpec.getOrder() ()
          Returns the order of the generator.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

ECParameterSpec sample code for java.security.spec.ECParameterSpec(java.security.spec.EllipticCurve, java.security.spec.ECPoint, java.math.BigInteger, int) definition code for java.security.spec.ECParameterSpec(java.security.spec.EllipticCurve, java.security.spec.ECPoint, java.math.BigInteger, int)

public ECParameterSpec(EllipticCurve sample code for java.security.spec.EllipticCurve definition code for java.security.spec.EllipticCurve  curve,
                       ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint  g,
                       BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  n,
                       int h)
Creates elliptic curve domain parameters based on the specified values.

Parameters:
curve - the elliptic curve which this parameter defines.
g - the generator which is also known as the base point.
n - the order of the generator g.
h - the cofactor.
Throws:
NullPointerException sample code for java.lang.NullPointerException definition code for java.lang.NullPointerException - if curve, g, or n is null.
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if n or h is not positive.
Method Detail

getCurve sample code for java.security.spec.ECParameterSpec.getCurve() definition code for java.security.spec.ECParameterSpec.getCurve()

public EllipticCurve sample code for java.security.spec.EllipticCurve definition code for java.security.spec.EllipticCurve  getCurve()
Returns the elliptic curve that this parameter defines.

Returns:
the elliptic curve that this parameter defines.

getGenerator sample code for java.security.spec.ECParameterSpec.getGenerator() definition code for java.security.spec.ECParameterSpec.getGenerator()

public ECPoint sample code for java.security.spec.ECPoint definition code for java.security.spec.ECPoint  getGenerator()
Returns the generator which is also known as the base point.

Returns:
the generator which is also known as the base point.

getOrder sample code for java.security.spec.ECParameterSpec.getOrder() definition code for java.security.spec.ECParameterSpec.getOrder()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getOrder()
Returns the order of the generator.

Returns:
the order of the generator.

getCofactor sample code for java.security.spec.ECParameterSpec.getCofactor() definition code for java.security.spec.ECParameterSpec.getCofactor()

public int getCofactor()
Returns the cofactor.

Returns:
the cofactor.