1 7 package java.security.spec; 8 9 import java.math.BigInteger ; 10 11 23 public class ECPrivateKeySpec implements KeySpec { 24 25 private BigInteger s; 26 private ECParameterSpec params; 27 28 37 public ECPrivateKeySpec(BigInteger s, ECParameterSpec params) { 38 if (s == null) { 39 throw new NullPointerException ("s is null"); 40 } 41 if (params == null) { 42 throw new NullPointerException ("params is null"); 43 } 44 this.s = s; 45 this.params = params; 46 } 47 48 52 public BigInteger getS() { 53 return s; 54 } 55 56 61 public ECParameterSpec getParams() { 62 return params; 63 } 64 } 65 | Popular Tags |