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