1 package ch.ethz.ssh2.signature; 2 3 import java.math.BigInteger ; 4 5 11 public class RSAPrivateKey 12 { 13 private BigInteger d; 14 private BigInteger e; 15 private BigInteger n; 16 17 public RSAPrivateKey(BigInteger d, BigInteger e, BigInteger n) 18 { 19 this.d = d; 20 this.e = e; 21 this.n = n; 22 } 23 24 public BigInteger getD() 25 { 26 return d; 27 } 28 29 public BigInteger getE() 30 { 31 return e; 32 } 33 34 public BigInteger getN() 35 { 36 return n; 37 } 38 39 public RSAPublicKey getPublicKey() 40 { 41 return new RSAPublicKey(e, n); 42 } 43 } | Popular Tags |