1 7 package java.security.spec; 8 9 22 public class ECPublicKeySpec implements KeySpec { 23 24 private ECPoint w; 25 private ECParameterSpec params; 26 27 38 public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { 39 if (w == null) { 40 throw new NullPointerException ("w is null"); 41 } 42 if (params == null) { 43 throw new NullPointerException ("params is null"); 44 } 45 if (w == ECPoint.POINT_INFINITY) { 46 throw new IllegalArgumentException ("w is ECPoint.POINT_INFINITY"); 47 } 48 this.w = w; 49 this.params = params; 50 } 51 52 56 public ECPoint getW() { 57 return w; 58 } 59 60 65 public ECParameterSpec getParams() { 66 return params; 67 } 68 } 69 | Popular Tags |