KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > ssh2 > signature > DSAPublicKey


1 package ch.ethz.ssh2.signature;
2
3 import java.math.BigInteger JavaDoc;
4
5 /**
6  * DSAPublicKey.
7  *
8  * @author Christian Plattner, plattner@inf.ethz.ch
9  * @version $Id: DSAPublicKey.java,v 1.1 2005/05/26 14:53:30 cplattne Exp $
10  */

11 public class DSAPublicKey
12 {
13     private BigInteger JavaDoc p;
14     private BigInteger JavaDoc q;
15     private BigInteger JavaDoc g;
16     private BigInteger JavaDoc y;
17
18     public DSAPublicKey(BigInteger JavaDoc p, BigInteger JavaDoc q, BigInteger JavaDoc g, BigInteger JavaDoc y)
19     {
20         this.p = p;
21         this.q = q;
22         this.g = g;
23         this.y = y;
24     }
25
26     public BigInteger JavaDoc getP()
27     {
28         return p;
29     }
30
31     public BigInteger JavaDoc getQ()
32     {
33         return q;
34     }
35
36     public BigInteger JavaDoc getG()
37     {
38         return g;
39     }
40
41     public BigInteger JavaDoc getY()
42     {
43         return y;
44     }
45 }
Popular Tags