Added in API level 35

DSAGenParameterSpec

class DSAGenParameterSpec : AlgorithmParameterSpec
kotlin.Any
   ↳ java.security.spec.DSAGenParameterSpec

This immutable class specifies the set of parameters used for generating DSA parameters as specified in FIPS 186-3 Digital Signature Standard (DSS).

Summary

Public constructors
DSAGenParameterSpec(primePLen: Int, subprimeQLen: Int)

Creates a domain parameter specification for DSA parameter generation using primePLen and subprimeQLen.

DSAGenParameterSpec(primePLen: Int, subprimeQLen: Int, seedLen: Int)

Creates a domain parameter specification for DSA parameter generation using primePLen, subprimeQLen, and seedLen.

Public methods
Int

Returns the desired length of the prime P of the to-be-generated DSA domain parameters in bits.

Int

Returns the desired length of the domain parameter seed in bits.

Int

Returns the desired length of the sub-prime Q of the to-be-generated DSA domain parameters in bits.

Public constructors

DSAGenParameterSpec

Added in API level 35
DSAGenParameterSpec(
    primePLen: Int,
    subprimeQLen: Int)

Creates a domain parameter specification for DSA parameter generation using primePLen and subprimeQLen. The value of subprimeQLen is also used as the default length of the domain parameter seed in bits.

Parameters
primePLen Int: the desired length of the prime P in bits.
subprimeQLen Int: the desired length of the sub-prime Q in bits.
Exceptions
java.lang.IllegalArgumentException if primePLen or subprimeQLen is illegal per the specification of FIPS 186-3.

DSAGenParameterSpec

Added in API level 35
DSAGenParameterSpec(
    primePLen: Int,
    subprimeQLen: Int,
    seedLen: Int)

Creates a domain parameter specification for DSA parameter generation using primePLen, subprimeQLen, and seedLen.

Parameters
primePLen Int: the desired length of the prime P in bits.
subprimeQLen Int: the desired length of the sub-prime Q in bits.
seedLen Int: the desired length of the domain parameter seed in bits, shall be equal to or greater than subprimeQLen.
Exceptions
java.lang.IllegalArgumentException if primePLenLen, subprimeQLen, or seedLen is illegal per the specification of FIPS 186-3.

Public methods

getPrimePLength

Added in API level 35
fun getPrimePLength(): Int

Returns the desired length of the prime P of the to-be-generated DSA domain parameters in bits.

Return
Int the length of the prime P.

getSeedLength

Added in API level 35
fun getSeedLength(): Int

Returns the desired length of the domain parameter seed in bits.

Return
Int the length of the domain parameter seed.

getSubprimeQLength

Added in API level 35
fun getSubprimeQLength(): Int

Returns the desired length of the sub-prime Q of the to-be-generated DSA domain parameters in bits.

Return
Int the length of the sub-prime Q.