Class DSADomainParameterSpec

java.lang.Object
java.security.spec.DSAParameterSpec
org.bouncycastle.jcajce.spec.DSADomainParameterSpec
All Implemented Interfaces:
DSAParams, AlgorithmParameterSpec

public class DSADomainParameterSpec extends DSAParameterSpec
Extension class for DSAParameterSpec that wraps a DSADomainParameters object and provides the validation parameters if available.
  • Constructor Details

    • DSADomainParameterSpec

      public DSADomainParameterSpec(DSADomainParameters domainParameters)
      Base constructor - use the values in an existing set of domain parameters.
      Parameters:
      domainParameters - the DSA domain parameters to wrap.
    • DSADomainParameterSpec

      public DSADomainParameterSpec(BigInteger p, BigInteger q, BigInteger g)
      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

      public DSAValidationParameters getValidationParameters()
      Return the validation parameters associated with this parameter spec if available.
      Returns:
      the validation parameters, null if not available.
    • getDomainParameters

      public DSADomainParameters getDomainParameters()
      Return the DSADomainParameters object we also represent.
      Returns:
      a DSADomainParameters.