Home | History | Annotate | Download | only in spec
      1 package org.bouncycastle.jce.spec;
      2 
      3 import java.security.spec.KeySpec;
      4 
      5 /**
      6  * base class for an Elliptic Curve Key Spec
      7  */
      8 public class ECKeySpec
      9     implements KeySpec
     10 {
     11     private ECParameterSpec     spec;
     12 
     13     protected ECKeySpec(
     14         ECParameterSpec spec)
     15     {
     16         this.spec = spec;
     17     }
     18 
     19     /**
     20      * return the domain parameters for the curve
     21      */
     22     public ECParameterSpec getParams()
     23     {
     24         return spec;
     25     }
     26 }
     27