1/*
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
3 * Please refer to the LICENSE.txt for licensing details.
4 */
5package ch.ethz.ssh2.signature;
6
7import java.math.BigInteger;
8
9/**
10 * DSAPrivateKey.
11 *
12 * @author Christian Plattner
13 * @version 2.50, 03/15/10
14 */
15public class DSAPrivateKey
16{
17	private BigInteger p;
18	private BigInteger q;
19	private BigInteger g;
20	private BigInteger x;
21	private BigInteger y;
22
23	public DSAPrivateKey(BigInteger p, BigInteger q, BigInteger g,
24			BigInteger y, BigInteger x)
25	{
26		this.p = p;
27		this.q = q;
28		this.g = g;
29		this.y = y;
30		this.x = x;
31	}
32
33	public BigInteger getP()
34	{
35		return p;
36	}
37
38	public BigInteger getQ()
39	{
40		return q;
41	}
42
43	public BigInteger getG()
44	{
45		return g;
46	}
47
48	public BigInteger getY()
49	{
50		return y;
51	}
52
53	public BigInteger getX()
54	{
55		return x;
56	}
57
58	public DSAPublicKey getPublicKey()
59	{
60		return new DSAPublicKey(p, q, g, y);
61	}
62}