1 7 8 package java.security.spec; 9 10 import java.math.BigInteger ; 11 import java.security.spec.AlgorithmParameterSpec ; 12 13 24 25 public class RSAKeyGenParameterSpec implements AlgorithmParameterSpec { 26 27 private int keysize; 28 private BigInteger publicExponent; 29 30 33 public static final BigInteger F0 = BigInteger.valueOf(3); 34 35 38 public static final BigInteger F4 = BigInteger.valueOf(65537); 39 40 47 public RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) { 48 this.keysize = keysize; 49 this.publicExponent = publicExponent; 50 } 51 52 57 public int getKeysize() { 58 return keysize; 59 } 60 61 66 public BigInteger getPublicExponent() { 67 return publicExponent; 68 } 69 } 70 | Popular Tags |