01: package org.bouncycastle.jce.spec;
02:
03: import java.security.spec.KeySpec;
04:
05: /**
06: * base class for an Elliptic Curve Key Spec
07: */
08: public class ECKeySpec implements KeySpec {
09: private ECParameterSpec spec;
10:
11: protected ECKeySpec(ECParameterSpec spec) {
12: this .spec = spec;
13: }
14:
15: /**
16: * return the domain parameters for the curve
17: */
18: public ECParameterSpec getParams() {
19: return spec;
20: }
21: }
|