Stay organized with collections
Save and categorize content based on your preferences.
DSAPrivateKeySpec
open class DSAPrivateKeySpec : KeySpec
This class specifies a DSA private key with its associated parameters.
Summary
Public constructors |
Creates a new DSAPrivateKeySpec with the specified parameter values.
|
Public constructors
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
.
getX
open fun getX(): BigInteger!
Returns the private key x
.
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,["# DSAPrivateKeySpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDSAPrivateKeySpec\n=================\n\n```\nopen class DSAPrivateKeySpec : KeySpec\n```\n\n|---|-------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.DSAPrivateKeySpec](#) |\n\nThis class specifies a DSA private key with its associated parameters.\n\nSummary\n-------\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [DSAPrivateKeySpec](#DSAPrivateKeySpec(java.math.BigInteger,%20java.math.BigInteger,%20java.math.BigInteger,%20java.math.BigInteger))`(`x:` `[BigInteger](../../math/BigInteger.html#)!`, `p:` `[BigInteger](../../math/BigInteger.html#)!`, `q:` `[BigInteger](../../math/BigInteger.html#)!`, `g:` `[BigInteger](../../math/BigInteger.html#)!`)` Creates a new DSAPrivateKeySpec 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| open [BigInteger](../../math/BigInteger.html#)! | [getX](#getX())`()` Returns the private key `x`. |\n\nPublic constructors\n-------------------\n\n### DSAPrivateKeySpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nDSAPrivateKeySpec(\n x: BigInteger!, \n p: BigInteger!, \n q: BigInteger!, \n g: BigInteger!)\n```\n\nCreates a new DSAPrivateKeySpec with the specified parameter values.\n\n| Parameters ||\n|-----|--------------------------------------------------------------|\n| `x` | [BigInteger](../../math/BigInteger.html#)!: the private key. |\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`. |\n\n### getX\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getX(): BigInteger!\n```\n\nReturns the private key `x`.\n\n| Return ||\n|--------------------------------------------|----------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the private key `x`. |"]]