de.flexiprovider.core.dsa
Class DSAParameterSpec
java.lang.Object
|
+--java.security.spec.DSAParameterSpec
|
+--de.flexiprovider.core.dsa.DSAParameterSpec
- All Implemented Interfaces:
- AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec, java.security.interfaces.DSAParams, DSAParams
- public final class DSAParameterSpec
- extends java.security.spec.DSAParameterSpec
- implements DSAParams, AlgorithmParameterSpec
This class specifies the set of parameters used with the DSA algorithm.
- See Also:
AlgorithmParameterSpec
| Fields inherited from class java.security.spec.DSAParameterSpec |
g, p, q |
|
Constructor Summary |
DSAParameterSpec(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Create a new DSAParameterSpec with the specified parameter values. |
DSAParameterSpec(java.security.interfaces.DSAParams dsaParams)
Create a new DSAParameterSpec out of the given DSAParams. |
DSAParameterSpec(FlexiBigInt p,
FlexiBigInt q,
FlexiBigInt g)
Create a new DSAParameterSpec with the specified parameter values. |
| Methods inherited from class java.security.spec.DSAParameterSpec |
getG, getP, getQ |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.security.interfaces.DSAParams |
getG, getP, getQ |
DSAParameterSpec
public DSAParameterSpec(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
- Create a new DSAParameterSpec with the specified parameter values.
- Parameters:
p - the primeq - the subprimeg - the base
DSAParameterSpec
public DSAParameterSpec(java.security.interfaces.DSAParams dsaParams)
- Create a new DSAParameterSpec out of the given DSAParams.
- Parameters:
dsaParams - the DSAParams object
DSAParameterSpec
public DSAParameterSpec(FlexiBigInt p,
FlexiBigInt q,
FlexiBigInt g)
- Create a new DSAParameterSpec with the specified parameter values.
- Parameters:
p - the primeq - the subprimeg - the base
getPrimeP
public FlexiBigInt getPrimeP()
- Specified by:
getPrimeP in interface DSAParams
- Returns:
- the prime p
getPrimeQ
public FlexiBigInt getPrimeQ()
- Specified by:
getPrimeQ in interface DSAParams
- Returns:
- the sub-prime q
getBaseG
public FlexiBigInt getBaseG()
- Specified by:
getBaseG in interface DSAParams
- Returns:
- the base g