Stay organized with collections
Save and categorize content based on your preferences.
EdECPublicKeySpec
class EdECPublicKeySpec : KeySpec
A class representing elliptic curve public keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters. The public key is a point on the curve, which is represented using an EdECPoint
.
Summary
Public constructors |
Construct a public key spec using the supplied parameters and point.
|
Public methods |
NamedParameterSpec |
Get the algorithm parameters that define the curve and other settings.
|
EdECPoint |
Get the point representing the public key.
|
Public constructors
EdECPublicKeySpec
EdECPublicKeySpec(
params: NamedParameterSpec,
point: EdECPoint)
Construct a public key spec using the supplied parameters and point.
Exceptions |
java.lang.NullPointerException |
if params or point is null. |
Public methods
getParams
fun getParams(): NamedParameterSpec
Get the algorithm parameters that define the curve and other settings.
getPoint
fun getPoint(): EdECPoint
Get the point representing the public key.
Return |
EdECPoint |
the EdECPoint representing the public key. |
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,["# EdECPublicKeySpec\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEdECPublicKeySpec\n=================\n\n```\nclass EdECPublicKeySpec : KeySpec\n```\n\n|---|-------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.EdECPublicKeySpec](#) |\n\nA class representing elliptic curve public keys as defined in [RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA)](https://tools.ietf.org/html/rfc8032), including the curve and other algorithm parameters. The public key is a point on the curve, which is represented using an `EdECPoint`.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [EdECPublicKeySpec](#EdECPublicKeySpec(java.security.spec.NamedParameterSpec,%20java.security.spec.EdECPoint))`(`params:` `[NamedParameterSpec](/reference/kotlin/java/security/spec/NamedParameterSpec)`, `point:` `[EdECPoint](/reference/kotlin/java/security/spec/EdECPoint)`)` Construct a public key spec using the supplied parameters and point. |\n\n| Public methods ||\n|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| [NamedParameterSpec](/reference/kotlin/java/security/spec/NamedParameterSpec) | [getParams](#getParams())`()` Get the algorithm parameters that define the curve and other settings. |\n| [EdECPoint](/reference/kotlin/java/security/spec/EdECPoint) | [getPoint](#getPoint())`()` Get the point representing the public key. |\n\nPublic constructors\n-------------------\n\n### EdECPublicKeySpec\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nEdECPublicKeySpec(\n params: NamedParameterSpec, \n point: EdECPoint)\n```\n\nConstruct a public key spec using the supplied parameters and point.\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------|\n| `params` | [NamedParameterSpec](/reference/kotlin/java/security/spec/NamedParameterSpec): the algorithm parameters. |\n| `point` | [EdECPoint](/reference/kotlin/java/security/spec/EdECPoint): the point representing the public key. |\n\n| Exceptions ||\n|----------------------------------|---------------------------------|\n| `java.lang.NullPointerException` | if `params` or `point` is null. |\n\nPublic methods\n--------------\n\n### getParams\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getParams(): NamedParameterSpec\n```\n\nGet the algorithm parameters that define the curve and other settings.\n\n| Return ||\n|-------------------------------------------------------------------------------|-----------------|\n| [NamedParameterSpec](/reference/kotlin/java/security/spec/NamedParameterSpec) | the parameters. |\n\n### getPoint\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPoint(): EdECPoint\n```\n\nGet the point representing the public key.\n\n| Return ||\n|-------------------------------------------------------------|----------------------------------------------|\n| [EdECPoint](/reference/kotlin/java/security/spec/EdECPoint) | the `EdECPoint` representing the public key. |"]]