Top Description Fields Constructors Methods
org.bouncycastle.jcajce.spec

public Class DSADomainParameterSpec

extends DSAParameterSpec
Class Inheritance
Imports
java.math.BigInteger, java.security.spec.DSAParameterSpec, org.bouncycastle.crypto.asymmetric.DSADomainParameters, .DSAValidationParameters

Extension class for DSAParameterSpec that wraps a DSADomainParameters object and provides the validation parameters if available.

Field Summary

Modifier and TypeField and Description
private final DSAValidationParameters

Constructor Summary

AccessConstructor and Description
public
DSADomainParameterSpec(DSADomainParameters
the DSA domain parameters to wrap.
domainParameters
)

Base constructor - use the values in an existing set of domain parameters.

public
DSADomainParameterSpec(BigInteger
the prime.
p
,
BigInteger
the sub-prime.
q
,
BigInteger
the base.
g
)

Creates a new DSAParameterSpec with the specified parameter values.

public
DSADomainParameterSpec(BigInteger
the prime.
p
,
BigInteger
the sub-prime.
q
,
BigInteger
the base.
g
,
DSAValidationParameters
the validation parameters (may be null if not available)
validationParameters
)

Creates a new DSAParameterSpec with the specified parameter values.

Method Summary

Modifier and TypeMethod and Description
public DSADomainParameters

Returns:

a DSADomainParameters.
getDomainParameters
()

Return the DSADomainParameters object we also represent.

public DSAValidationParameters

Returns:

the validation parameters, null if not available.
getValidationParameters
()

Return the validation parameters associated with this parameter spec if available.

Inherited from java.security.spec.DSAParameterSpec:
getGgetPgetQ

Field Detail

validationParametersback to summary
private final DSAValidationParameters validationParameters

Constructor Detail

DSADomainParameterSpecback to summary
public DSADomainParameterSpec(DSADomainParameters domainParameters)

Base constructor - use the values in an existing set of domain parameters.

Parameters
domainParameters:DSADomainParameters

the DSA domain parameters to wrap.

DSADomainParameterSpecback to summary
public DSADomainParameterSpec(BigInteger p, BigInteger q, BigInteger g)

Creates a new DSAParameterSpec with the specified parameter values.

Parameters
p:BigInteger

the prime.

q:BigInteger

the sub-prime.

g:BigInteger

the base.

DSADomainParameterSpecback to summary
public DSADomainParameterSpec(BigInteger p, BigInteger q, BigInteger g, DSAValidationParameters validationParameters)

Creates a new DSAParameterSpec with the specified parameter values.

Parameters
p:BigInteger

the prime.

q:BigInteger

the sub-prime.

g:BigInteger

the base.

validationParameters:DSAValidationParameters

the validation parameters (may be null if not available)

Method Detail

getDomainParametersback to summary
public DSADomainParameters getDomainParameters()

Return the DSADomainParameters object we also represent.

Returns:DSADomainParameters

a DSADomainParameters.

getValidationParametersback to summary
public DSAValidationParameters getValidationParameters()

Return the validation parameters associated with this parameter spec if available.

Returns:DSAValidationParameters

the validation parameters, null if not available.