Stay organized with collections
Save and categorize content based on your preferences.
DSAParameterSpec
open class DSAParameterSpec : AlgorithmParameterSpec, DSAParams
This class specifies the set of parameters used with the DSA algorithm.
Summary
Public constructors |
Creates a new DSAParameterSpec with the specified parameter values.
|
Public constructors
DSAParameterSpec
DSAParameterSpec(
p: BigInteger!,
q: BigInteger!,
g: BigInteger!)
Creates a new DSAParameterSpec with the specified parameter values.
Public methods
getG
open fun getG(): BigInteger!
Returns the base g
.
getP
open fun getP(): BigInteger!
Returns the prime p
.
getQ
open fun getQ(): BigInteger!
Returns the sub-prime q
.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# DSAParameterSpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDSAParameterSpec\n================\n\n```\nopen class DSAParameterSpec : AlgorithmParameterSpec, DSAParams\n```\n\n|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.DSAParameterSpec](#) |\n\nThis class specifies the set of parameters used with the DSA algorithm.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DSAParameterSpec](#DSAParameterSpec(java.math.BigInteger,%20java.math.BigInteger,%20java.math.BigInteger))`(`p:` `[BigInteger](../../math/BigInteger.html#)!`, `q:` `[BigInteger](../../math/BigInteger.html#)!`, `g:` `[BigInteger](../../math/BigInteger.html#)!`)` Creates a new DSAParameterSpec with the specified parameter values. |\n\n| Public methods ||\n|-------------------------------------------------|------------------------------------------------|\n| open [BigInteger](../../math/BigInteger.html#)! | [getG](#getG())`()` Returns the base `g`. |\n| open [BigInteger](../../math/BigInteger.html#)! | [getP](#getP())`()` Returns the prime `p`. |\n| open [BigInteger](../../math/BigInteger.html#)! | [getQ](#getQ())`()` Returns the sub-prime `q`. |\n\nPublic constructors\n-------------------\n\n### DSAParameterSpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDSAParameterSpec(\n p: BigInteger!, \n q: BigInteger!, \n g: BigInteger!)\n```\n\nCreates a new DSAParameterSpec with the specified parameter values.\n\n| Parameters ||\n|-----|------------------------------------------------------------|\n| `p` | [BigInteger](../../math/BigInteger.html#)!: the prime. |\n| `q` | [BigInteger](../../math/BigInteger.html#)!: the sub-prime. |\n| `g` | [BigInteger](../../math/BigInteger.html#)!: the base. |\n\nPublic methods\n--------------\n\n### getG\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getG(): BigInteger!\n```\n\nReturns the base `g`.\n\n| Return ||\n|--------------------------------------------|---------------|\n| [BigInteger](../../math/BigInteger.html#)! | the base `g`. |\n\n### getP\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getP(): BigInteger!\n```\n\nReturns the prime `p`.\n\n| Return ||\n|--------------------------------------------|----------------|\n| [BigInteger](../../math/BigInteger.html#)! | the prime `p`. |\n\n### getQ\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getQ(): BigInteger!\n```\n\nReturns the sub-prime `q`.\n\n| Return ||\n|--------------------------------------------|--------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the sub-prime `q`. |"]]