1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 package com.android.org.bouncycastle.jce.spec; 3 4 import java.math.BigInteger; 5 6 import com.android.org.bouncycastle.math.ec.ECCurve; 7 import com.android.org.bouncycastle.math.ec.ECPoint; 8 9 /** 10 * specification signifying that the curve parameters can also be 11 * referred to by name. 12 * <p> 13 * If you are using JDK 1.5 you should be looking at {@link ECNamedCurveSpec}. 14 * @hide This class is not part of the Android public SDK API 15 */ 16 public class ECNamedCurveParameterSpec 17 extends ECParameterSpec 18 { 19 private String name; 20 21 public ECNamedCurveParameterSpec( 22 String name, 23 ECCurve curve, 24 ECPoint G, 25 BigInteger n) 26 { 27 super(curve, G, n); 28 29 this.name = name; 30 } 31 32 public ECNamedCurveParameterSpec( 33 String name, 34 ECCurve curve, 35 ECPoint G, 36 BigInteger n, 37 BigInteger h) 38 { 39 super(curve, G, n, h); 40 41 this.name = name; 42 } 43 44 public ECNamedCurveParameterSpec( 45 String name, 46 ECCurve curve, 47 ECPoint G, 48 BigInteger n, 49 BigInteger h, 50 byte[] seed) 51 { 52 super(curve, G, n, h, seed); 53 54 this.name = name; 55 } 56 57 /** 58 * return the name of the curve the EC domain parameters belong to. 59 */ 60 public String getName() 61 { 62 return name; 63 } 64 } 65