01: package ch.ethz.ssh2.signature;
02:
03: import java.math.BigInteger;
04:
05: /**
06: * RSAPrivateKey.
07: *
08: * @author Christian Plattner, plattner@inf.ethz.ch
09: * @version $Id: RSAPrivateKey.java,v 1.1 2005/08/11 12:47:29 cplattne Exp $
10: */
11: public class RSAPrivateKey {
12: private BigInteger d;
13: private BigInteger e;
14: private BigInteger n;
15:
16: public RSAPrivateKey(BigInteger d, BigInteger e, BigInteger n) {
17: this .d = d;
18: this .e = e;
19: this .n = n;
20: }
21:
22: public BigInteger getD() {
23: return d;
24: }
25:
26: public BigInteger getE() {
27: return e;
28: }
29:
30: public BigInteger getN() {
31: return n;
32: }
33:
34: public RSAPublicKey getPublicKey() {
35: return new RSAPublicKey(e, n);
36: }
37: }
|