1 /* 2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved. 3 * Please refer to the LICENSE.txt for licensing details. 4 */ 5 package ch.ethz.ssh2.signature; 6 7 import java.math.BigInteger; 8 9 /** 10 * RSAPrivateKey. 11 * 12 * @author Christian Plattner 13 * @version 2.50, 03/15/10 14 */ 15 public class RSAPrivateKey 16 { 17 private BigInteger d; 18 private BigInteger e; 19 private BigInteger n; 20 21 public RSAPrivateKey(BigInteger d, BigInteger e, BigInteger n) 22 { 23 this.d = d; 24 this.e = e; 25 this.n = n; 26 } 27 28 public BigInteger getD() 29 { 30 return d; 31 } 32 33 public BigInteger getE() 34 { 35 return e; 36 } 37 38 public BigInteger getN() 39 { 40 return n; 41 } 42 43 public RSAPublicKey getPublicKey() 44 { 45 return new RSAPublicKey(e, n); 46 } 47 }