1 package org.bouncycastle.asn1.x509;
6 import org.bouncycastle.asn1.*;
8 public class DSAParameter
9 implements DEREncodable
18 this.p = new DERInteger(p);
19 this.q = new DERInteger(q);
20 this.g = new DERInteger(g);
24 DERConstructedSequence seq)
26 Enumeration e = seq.getObjects();
28 p = (DERInteger)e.nextElement();
29 q = (DERInteger)e.nextElement();
30 g = (DERInteger)e.nextElement();
33 public BigInteger getP()
35 return p.getPositiveValue();
38 public BigInteger getQ()
40 return q.getPositiveValue();
43 public BigInteger getG()
45 return g.getPositiveValue();
48 public DERObject getDERObject()
50 DERConstructedSequence seq = new DERConstructedSequence();