01: package org.bouncycastle.jce.spec;
02:
03: import java.math.BigInteger;
04:
05: import org.bouncycastle.math.ec.ECCurve;
06: import org.bouncycastle.math.ec.ECPoint;
07:
08: /**
09: * specification signifying that the curve parameters can also be
10: * refered to by name.
11: * <p>
12: * If you are using JDK 1.5 you should be looking at ECNamedCurveSpec.
13: */
14: public class ECNamedCurveParameterSpec extends ECParameterSpec {
15: private String name;
16:
17: public ECNamedCurveParameterSpec(String name, ECCurve curve,
18: ECPoint G, BigInteger n) {
19: super (curve, G, n);
20:
21: this .name = name;
22: }
23:
24: public ECNamedCurveParameterSpec(String name, ECCurve curve,
25: ECPoint G, BigInteger n, BigInteger h) {
26: super (curve, G, n, h);
27:
28: this .name = name;
29: }
30:
31: public ECNamedCurveParameterSpec(String name, ECCurve curve,
32: ECPoint G, BigInteger n, BigInteger h, byte[] seed) {
33: super (curve, G, n, h, seed);
34:
35: this .name = name;
36: }
37:
38: /**
39: * return the name of the curve the EC domain parameters belong to.
40: */
41: public String getName() {
42: return name;
43: }
44: }
|