01: package ch.ethz.ssh2.signature;
02:
03: import java.math.BigInteger;
04:
05: /**
06: * DSAPrivateKey.
07: *
08: * @author Christian Plattner, plattner@inf.ethz.ch
09: * @version $Id: DSAPrivateKey.java,v 1.1 2005/05/26 14:53:30 cplattne Exp $
10: */
11: public class DSAPrivateKey {
12: private BigInteger p;
13: private BigInteger q;
14: private BigInteger g;
15: private BigInteger x;
16: private BigInteger y;
17:
18: public DSAPrivateKey(BigInteger p, BigInteger q, BigInteger g,
19: BigInteger y, BigInteger x) {
20: this .p = p;
21: this .q = q;
22: this .g = g;
23: this .y = y;
24: this .x = x;
25: }
26:
27: public BigInteger getP() {
28: return p;
29: }
30:
31: public BigInteger getQ() {
32: return q;
33: }
34:
35: public BigInteger getG() {
36: return g;
37: }
38:
39: public BigInteger getY() {
40: return y;
41: }
42:
43: public BigInteger getX() {
44: return x;
45: }
46:
47: public DSAPublicKey getPublicKey() {
48: return new DSAPublicKey(p, q, g, y);
49: }
50: }
|