Stay organized with collections
Save and categorize content based on your preferences.
ECPrivateKeySpec
open class ECPrivateKeySpec : KeySpec
This immutable class specifies an elliptic curve private key with its associated parameters.
Summary
Public constructors |
Creates a new ECPrivateKeySpec with the specified parameter values.
|
Public methods |
open ECParameterSpec! |
Returns the associated elliptic curve domain parameters.
|
open BigInteger! |
Returns the private value S.
|
Public constructors
ECPrivateKeySpec
ECPrivateKeySpec(
s: BigInteger!,
params: ECParameterSpec!)
Creates a new ECPrivateKeySpec with the specified parameter values.
Exceptions |
java.lang.NullPointerException |
if s or params is null. |
Public methods
getParams
open fun getParams(): ECParameterSpec!
Returns the associated elliptic curve domain parameters.
getS
open fun getS(): BigInteger!
Returns the private value S.
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,["# ECPrivateKeySpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nECPrivateKeySpec\n================\n\n```\nopen class ECPrivateKeySpec : KeySpec\n```\n\n|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.ECPrivateKeySpec](#) |\n\nThis immutable class specifies an elliptic curve private key with its associated parameters.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ECPrivateKeySpec](#ECPrivateKeySpec(java.math.BigInteger,%20java.security.spec.ECParameterSpec))`(`s:` `[BigInteger](../../math/BigInteger.html#)!`, `params:` `[ECParameterSpec](/reference/kotlin/java/security/spec/ECParameterSpec)!`)` Creates a new ECPrivateKeySpec with the specified parameter values. |\n\n| Public methods ||\n|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|\n| open [ECParameterSpec](/reference/kotlin/java/security/spec/ECParameterSpec)! | [getParams](#getParams())`()` Returns the associated elliptic curve domain parameters. |\n| open [BigInteger](../../math/BigInteger.html#)! | [getS](#getS())`()` Returns the private value S. |\n\nPublic constructors\n-------------------\n\n### ECPrivateKeySpec\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nECPrivateKeySpec(\n s: BigInteger!, \n params: ECParameterSpec!)\n```\n\nCreates a new ECPrivateKeySpec with the specified parameter values.\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------------------------|\n| `s` | [BigInteger](../../math/BigInteger.html#)!: the private value. |\n| `params` | [ECParameterSpec](/reference/kotlin/java/security/spec/ECParameterSpec)!: the associated elliptic curve domain parameters. |\n\n| Exceptions ||\n|----------------------------------|-----------------------------|\n| `java.lang.NullPointerException` | if `s` or `params` is null. |\n\nPublic methods\n--------------\n\n### getParams\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getParams(): ECParameterSpec!\n```\n\nReturns the associated elliptic curve domain parameters.\n\n| Return ||\n|--------------------------------------------------------------------------|---------------------------|\n| [ECParameterSpec](/reference/kotlin/java/security/spec/ECParameterSpec)! | the EC domain parameters. |\n\n### getS\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getS(): BigInteger!\n```\n\nReturns the private value S.\n\n| Return ||\n|--------------------------------------------|----------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the private value S. |"]]