public ECParameterSpec(EllipticCurve curve,ECPoint g,BigInteger n,int h){
  if (curve == null) {
    throw new NullPointerException("curve is null");
  }
  if (g == null) {
    throw new NullPointerException("g is null");
  }
  if (n == null) {
    throw new NullPointerException("n is null");
  }
  if (n.signum() != 1) {
    throw new IllegalArgumentException("n is not positive");
  }
  if (h <= 0) {
    throw new IllegalArgumentException("h is not positive");
  }
  this.curve=curve;
  this.g=g;
  this.n=n;
  this.h=h;
}

public ECParameterSpec ( EllipticCurve curve , ECPoint g , BigInteger n , int h ) { if ( curve == null ) { throw new NullPointerException ( "curve is null" ) ; } if ( g == null ) { throw new NullPointerException ( "g is null" ) ; } if ( n == null ) { throw new NullPointerException ( "n is null" ) ; } if ( n . signum ( ) != 1 ) { throw new IllegalArgumentException ( "n is not positive" ) ; } if ( h <= 0 ) { throw new IllegalArgumentException ( "h is not positive" ) ; } this . curve = curve ; this . g = g ; this . n = n ; this . h = h ; }
creates elliptic curve domain parameters based on the specified values .
