Package org.bouncycastle.jcajce.spec
Class DSADomainParameterSpec
java.lang.Object
java.security.spec.DSAParameterSpec
org.bouncycastle.jcajce.spec.DSADomainParameterSpec
- All Implemented Interfaces:
DSAParams
,AlgorithmParameterSpec
Extension class for DSAParameterSpec that wraps a DSADomainParameters object and provides the validation
parameters if available.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DSAParameterSpec with the specified parameter values.DSADomainParameterSpec
(BigInteger p, BigInteger q, BigInteger g, DSAValidationParameters validationParameters) Creates a new DSAParameterSpec with the specified parameter values.DSADomainParameterSpec
(DSADomainParameters domainParameters) Base constructor - use the values in an existing set of domain parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturn the DSADomainParameters object we also represent.Return the validation parameters associated with this parameter spec if available.Methods inherited from class java.security.spec.DSAParameterSpec
getG, getP, getQ
-
Constructor Details
-
DSADomainParameterSpec
Base constructor - use the values in an existing set of domain parameters.- Parameters:
domainParameters
- the DSA domain parameters to wrap.
-
DSADomainParameterSpec
Creates a new DSAParameterSpec with the specified parameter values.- Parameters:
p
- the prime.q
- the sub-prime.g
- the base.
-
DSADomainParameterSpec
public DSADomainParameterSpec(BigInteger p, BigInteger q, BigInteger g, DSAValidationParameters validationParameters) Creates a new DSAParameterSpec with the specified parameter values.- Parameters:
p
- the prime.q
- the sub-prime.g
- the base.validationParameters
- the validation parameters (may be null if not available)
-
-
Method Details
-
getValidationParameters
Return the validation parameters associated with this parameter spec if available.- Returns:
- the validation parameters, null if not available.
-
getDomainParameters
Return the DSADomainParameters object we also represent.- Returns:
- a DSADomainParameters.
-