Stay organized with collections
Save and categorize content based on your preferences.
EdECPoint
public
final
class
EdECPoint
extends Object
An elliptic curve point used to specify keys as defined by
RFC 8032: Edwards-Curve
Digital Signature Algorithm (EdDSA). These points are distinct from the
points represented by ECPoint
, and they are intended for use with
algorithms based on RFC 8032 such as the EdDSA Signature
algorithm.
An EdEC point is specified by its y-coordinate value and a boolean that
indicates whether the x-coordinate is odd. The y-coordinate is an
element of the field of integers modulo some value p that is determined by
the algorithm parameters. This field element is represented by a
BigInteger
, and implementations that consume objects of this class
may reject integer values which are not in the range [0, p).
Summary
Public methods |
BigInteger
|
getY()
Get the y-coordinate of the point.
|
boolean
|
isXOdd()
Get whether the x-coordinate of the point is odd.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public constructors
EdECPoint
public EdECPoint (boolean xOdd,
BigInteger y)
Construct an EdECPoint.
Parameters |
xOdd |
boolean : whether the x-coordinate is odd. |
y |
BigInteger : the y-coordinate, represented using a BigInteger . |
Public methods
getY
public BigInteger getY ()
Get the y-coordinate of the point.
Returns |
BigInteger |
the y-coordinate, represented using a BigInteger . |
isXOdd
public boolean isXOdd ()
Get whether the x-coordinate of the point is odd.
Returns |
boolean |
a boolean indicating whether the x-coordinate is odd. |
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,["# EdECPoint\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nEdECPoint\n=========\n\n\n`\npublic\n\nfinal\n\nclass\nEdECPoint\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | java.security.spec.EdECPoint |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn elliptic curve point used to specify keys as defined by\n[RFC 8032: Edwards-Curve\nDigital Signature Algorithm (EdDSA)](https://tools.ietf.org/html/rfc8032). These points are distinct from the\npoints represented by `ECPoint`, and they are intended for use with\nalgorithms based on RFC 8032 such as the EdDSA `Signature` algorithm.\n\n\nAn EdEC point is specified by its y-coordinate value and a boolean that\nindicates whether the x-coordinate is odd. The y-coordinate is an\nelement of the field of integers modulo some value p that is determined by\nthe algorithm parameters. This field element is represented by a\n`BigInteger`, and implementations that consume objects of this class\nmay reject integer values which are not in the range \\[0, p).\n\nSummary\n-------\n\n| ### Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[EdECPoint](/reference/java/security/spec/EdECPoint#EdECPoint(boolean,%20java.math.BigInteger))`(boolean xOdd, `[BigInteger](/reference/java/math/BigInteger)` y) ` Construct an EdECPoint. |\n\n| ### Public methods ||\n|--------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| ` `[BigInteger](/reference/java/math/BigInteger) | ` `[getY](/reference/java/security/spec/EdECPoint#getY())`() ` Get the y-coordinate of the point. |\n| ` boolean` | ` `[isXOdd](/reference/java/security/spec/EdECPoint#isXOdd())`() ` Get whether the x-coordinate of the point is odd. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nPublic constructors\n-------------------\n\n### EdECPoint\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic EdECPoint (boolean xOdd, \n BigInteger y)\n```\n\nConstruct an EdECPoint.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------|\n| `xOdd` | `boolean`: whether the x-coordinate is odd. \u003cbr /\u003e |\n| `y` | `BigInteger`: the y-coordinate, represented using a `BigInteger`. \u003cbr /\u003e |\n\n| Throws ||\n|-------------------------------------------------------------------|-----------------|\n| [NullPointerException](/reference/java/lang/NullPointerException) | if `y` is null. |\n\nPublic methods\n--------------\n\n### getY\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic BigInteger getY ()\n```\n\nGet the y-coordinate of the point.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------------------------------------------|------------------------------------------------------------|\n| [BigInteger](/reference/java/math/BigInteger) | the y-coordinate, represented using a `BigInteger`. \u003cbr /\u003e |\n\n### isXOdd\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic boolean isXOdd ()\n```\n\nGet whether the x-coordinate of the point is odd.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------------------------------------------------------------|\n| `boolean` | a boolean indicating whether the x-coordinate is odd. \u003cbr /\u003e |"]]