java.security.spec
Class DSAParameterSpec

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.security.spec.DSAParameterSpec
All Implemented Interfaces:
DSAParams sample code for java.security.interfaces.DSAParams definition code for java.security.interfaces.DSAParams , AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec

public class DSAParameterSpec
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec , DSAParams sample code for java.security.interfaces.DSAParams definition code for java.security.interfaces.DSAParams

This class specifies the set of parameters used with the DSA algorithm.

Since:
1.2
See Also:
AlgorithmParameterSpec sample code for java.security.spec.AlgorithmParameterSpec definition code for java.security.spec.AlgorithmParameterSpec

Constructor Summary
DSAParameterSpec sample code for java.security.spec.DSAParameterSpec.DSAParameterSpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.DSAParameterSpec.DSAParameterSpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) (BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  p, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  q, BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  g)
          Creates a new DSAParameterSpec with the specified parameter values.
 
Method Summary
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getG sample code for java.security.spec.DSAParameterSpec.getG() definition code for java.security.spec.DSAParameterSpec.getG() ()
          Returns the base g.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getP sample code for java.security.spec.DSAParameterSpec.getP() definition code for java.security.spec.DSAParameterSpec.getP() ()
          Returns the prime p.
 BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger getQ sample code for java.security.spec.DSAParameterSpec.getQ() definition code for java.security.spec.DSAParameterSpec.getQ() ()
          Returns the sub-prime q.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Constructor Detail

DSAParameterSpec sample code for java.security.spec.DSAParameterSpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger) definition code for java.security.spec.DSAParameterSpec(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger)

public DSAParameterSpec(BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  p,
                        BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  q,
                        BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  g)
Creates a new DSAParameterSpec with the specified parameter values.

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

getP sample code for java.security.spec.DSAParameterSpec.getP() definition code for java.security.spec.DSAParameterSpec.getP()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getP()
Returns the prime p.

Specified by:
getP sample code for java.security.interfaces.DSAParams.getP() definition code for java.security.interfaces.DSAParams.getP() in interface DSAParams sample code for java.security.interfaces.DSAParams definition code for java.security.interfaces.DSAParams
Returns:
the prime p.

getQ sample code for java.security.spec.DSAParameterSpec.getQ() definition code for java.security.spec.DSAParameterSpec.getQ()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getQ()
Returns the sub-prime q.

Specified by:
getQ sample code for java.security.interfaces.DSAParams.getQ() definition code for java.security.interfaces.DSAParams.getQ() in interface DSAParams sample code for java.security.interfaces.DSAParams definition code for java.security.interfaces.DSAParams
Returns:
the sub-prime q.

getG sample code for java.security.spec.DSAParameterSpec.getG() definition code for java.security.spec.DSAParameterSpec.getG()

public BigInteger sample code for java.math.BigInteger definition code for java.math.BigInteger  getG()
Returns the base g.

Specified by:
getG sample code for java.security.interfaces.DSAParams.getG() definition code for java.security.interfaces.DSAParams.getG() in interface DSAParams sample code for java.security.interfaces.DSAParams definition code for java.security.interfaces.DSAParams
Returns:
the base g.