Stay organized with collections
Save and categorize content based on your preferences.
XECPublicKeySpec
open class XECPublicKeySpec : KeySpec
A class representing elliptic curve public keys as defined in RFC 7748, including the curve and other algorithm parameters. The public key is a particular point on the curve, which is represented using only its u-coordinate. A u-coordinate is an element of the field of integers modulo some value that is determined by the algorithm parameters. This field element is represented by a BigInteger which may hold any value. That is, the BigInteger is not restricted to the range of canonical field elements.
Summary
Public constructors |
Construct a public key spec using the supplied parameters and u coordinate.
|
Public methods |
open AlgorithmParameterSpec! |
Get the algorithm parameters that define the curve and other settings.
|
open BigInteger! |
Get the u coordinate of the point.
|
Public constructors
XECPublicKeySpec
XECPublicKeySpec(
params: AlgorithmParameterSpec!,
u: BigInteger!)
Construct a public key spec using the supplied parameters and u coordinate.
Parameters |
params |
AlgorithmParameterSpec!: the algorithm parameters |
u |
BigInteger!: the u-coordinate of the point, represented using a BigInteger which may hold any value |
Exceptions |
java.lang.NullPointerException |
if params or u is null. |
Public methods
getParams
open fun getParams(): AlgorithmParameterSpec!
Get the algorithm parameters that define the curve and other settings.
getU
open fun getU(): BigInteger!
Get the u coordinate of the point.
Return |
BigInteger! |
the u-coordinate, represented using a BigInteger which may hold any value |
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,["# XECPublicKeySpec\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nXECPublicKeySpec\n================\n\n```\nopen class XECPublicKeySpec : KeySpec\n```\n\n|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.spec.XECPublicKeySpec](#) |\n\nA class representing elliptic curve public keys as defined in RFC 7748, including the curve and other algorithm parameters. The public key is a particular point on the curve, which is represented using only its u-coordinate. A u-coordinate is an element of the field of integers modulo some value that is determined by the algorithm parameters. This field element is represented by a BigInteger which may hold any value. That is, the BigInteger is not restricted to the range of canonical field elements.\n\nSummary\n-------\n\n| Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [XECPublicKeySpec](#XECPublicKeySpec(java.security.spec.AlgorithmParameterSpec,%20java.math.BigInteger))`(`params:` `[AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)!`, `u:` `[BigInteger](../../math/BigInteger.html#)!`)` Construct a public key spec using the supplied parameters and u coordinate. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| open [AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)! | [getParams](#getParams())`()` Get the algorithm parameters that define the curve and other settings. |\n| open [BigInteger](../../math/BigInteger.html#)! | [getU](#getU())`()` Get the u coordinate of the point. |\n\nPublic constructors\n-------------------\n\n### XECPublicKeySpec\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nXECPublicKeySpec(\n params: AlgorithmParameterSpec!, \n u: BigInteger!)\n```\n\nConstruct a public key spec using the supplied parameters and u coordinate.\n\n| Parameters ||\n|----------|------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | [AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)!: the algorithm parameters |\n| `u` | [BigInteger](../../math/BigInteger.html#)!: the u-coordinate of the point, represented using a BigInteger which may hold any value |\n\n| Exceptions ||\n|----------------------------------|-----------------------------|\n| `java.lang.NullPointerException` | if `params` or `u` 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```\nopen fun getParams(): AlgorithmParameterSpec!\n```\n\nGet the algorithm parameters that define the curve and other settings.\n\n| Return ||\n|----------------------------------------------------------------------------------------|----------------|\n| [AlgorithmParameterSpec](/reference/kotlin/java/security/spec/AlgorithmParameterSpec)! | the parameters |\n\n### getU\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getU(): BigInteger!\n```\n\nGet the u coordinate of the point.\n\n| Return ||\n|--------------------------------------------|---------------------------------------------------------------------------|\n| [BigInteger](../../math/BigInteger.html#)! | the u-coordinate, represented using a BigInteger which may hold any value |"]]