java.security.spec
Class DSAParameterSpec

java.lang.Object
  extended by java.security.spec.DSAParameterSpec
All Implemented Interfaces:
DSAParams, AlgorithmParameterSpec

public class DSAParameterSpec
extends Object
implements AlgorithmParameterSpec, DSAParams

DSA Parameter class Specification. Used to maintain the DSA Parameters.

Since:
1.2

Constructor Summary
DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g)
          Constructs a new DSAParameterSpec with the specified p, q, and g.
 
Method Summary
 BigInteger getG()
          Returns g for the DSA algorithm.
 BigInteger getP()
          Returns p for the DSA algorithm.
 BigInteger getQ()
          Returns p for the DSA algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSAParameterSpec

public DSAParameterSpec(BigInteger p,
                        BigInteger q,
                        BigInteger g)
Constructs a new DSAParameterSpec with the specified p, q, and g.

Parameters:
p - the prime
q - the sub-prime
g - the base
Method Detail

getP

public BigInteger getP()
Returns p for the DSA algorithm.

Specified by:
getP in interface DSAParams
Returns:
Returns the requested BigInteger

getQ

public BigInteger getQ()
Returns p for the DSA algorithm.

Specified by:
getQ in interface DSAParams
Returns:
Returns the requested BigInteger

getG

public BigInteger getG()
Returns g for the DSA algorithm.

Specified by:
getG in interface DSAParams
Returns:
Returns the requested BigInteger