1 7 8 package java.security.spec; 9 10 import java.math.BigInteger ; 11 12 26 27 public class RSAPrivateKeySpec implements KeySpec { 28 29 private BigInteger modulus; 30 private BigInteger privateExponent; 31 32 38 public RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) { 39 this.modulus = modulus; 40 this.privateExponent = privateExponent; 41 } 42 43 48 public BigInteger getModulus() { 49 return this.modulus; 50 } 51 52 57 public BigInteger getPrivateExponent() { 58 return this.privateExponent; 59 } 60 } 61 | Popular Tags |