Stay organized with collections
Save and categorize content based on your preferences.
ECPublicKey
public
interface
ECPublicKey
implements
ECKey,
PublicKey
java.security.interfaces.ECPublicKey
|
The interface to an elliptic curve (EC) public key.
Summary
Constants |
long |
serialVersionUID
This constant was deprecated
in API level 35.
A serialVersionUID field in an interface is
ineffectual. Do not use; no replacement.
|
Inherited constants |
|
From interface
java.security.Key
long |
serialVersionUID
This constant was deprecated
in API level 34.
A serialVersionUID field in an interface is
ineffectual. Do not use; no replacement.
|
|
Public methods |
abstract
ECPoint
|
getW()
Returns the public point W.
|
Inherited methods |
|
From interface
java.security.Key
abstract
String
|
getAlgorithm()
Returns the standard algorithm name for this key.
|
abstract
byte[]
|
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
abstract
String
|
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
|
Constants
serialVersionUID
public static final long serialVersionUID
This constant was deprecated
in API level 35.
A serialVersionUID
field in an interface is
ineffectual. Do not use; no replacement.
The class fingerprint that is set to indicate
serialization compatibility.
Constant Value:
-3314988629879632826
(0xd1fecb679990cc46)
Public methods
getW
public abstract ECPoint getW ()
Returns the public point W.
Returns |
ECPoint |
the public point W. |
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,["# ECPublicKey\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Constants](#constants) \\| [Inherited Constants](#inhconstants) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nECPublicKey\n===========\n\n\n`\npublic\n\n\ninterface\nECPublicKey\n`\n\n\n`\n\n\nimplements\n\n`[ECKey](/reference/java/security/interfaces/ECKey)`,\n\n`[PublicKey](/reference/java/security/PublicKey)`\n\n\n`\n\n|--------------------------------------|\n| java.security.interfaces.ECPublicKey |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe interface to an elliptic curve (EC) public key. \n**See also:**\n\n- [PublicKey](/reference/java/security/PublicKey)\n- [ECKey](/reference/java/security/interfaces/ECKey)\n- [ECPoint](/reference/java/security/spec/ECPoint)\n\nSummary\n-------\n\n| ### Constants ||\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `long` | [serialVersionUID](/reference/java/security/interfaces/ECPublicKey#serialVersionUID) *This constant was deprecated in API level 35. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* |\n\n| ### Inherited constants |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| From interface [java.security.PublicKey](/reference/java/security/PublicKey) |--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `long` | [serialVersionUID](/reference/java/security/PublicKey#serialVersionUID) *This constant was deprecated in API level 34. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* | |\n| From interface [java.security.Key](/reference/java/security/Key) |--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `long` | [serialVersionUID](/reference/java/security/Key#serialVersionUID) *This constant was deprecated in API level 34. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* | |\n\n| ### Public methods ||\n|--------------------------------------------------------------|----------------------------------------------------------------------------------------------------|\n| ` abstract `[ECPoint](/reference/java/security/spec/ECPoint) | ` `[getW](/reference/java/security/interfaces/ECPublicKey#getW())`() ` Returns the public point W. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` `[java.security.interfaces.ECKey](/reference/java/security/interfaces/ECKey)` ` |------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[ECParameterSpec](/reference/java/security/spec/ECParameterSpec) | ` `[getParams](/reference/java/security/interfaces/ECKey#getParams())`() ` Returns the domain parameters associated with this key. | ||\n| From interface ` `[java.security.Key](/reference/java/security/Key)` ` |---------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` abstract `[String](/reference/java/lang/String) | ` `[getAlgorithm](/reference/java/security/Key#getAlgorithm())`() ` Returns the standard algorithm name for this key. | | ` abstract byte[]` | ` `[getEncoded](/reference/java/security/Key#getEncoded())`() ` Returns the key in its primary encoding format, or null if this key does not support encoding. | | ` abstract `[String](/reference/java/lang/String) | ` `[getFormat](/reference/java/security/Key#getFormat())`() ` Returns the name of the primary encoding format of this key, or null if this key does not support encoding. | ||\n\nConstants\n---------\n\n### serialVersionUID\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n35](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic static final long serialVersionUID\n```\n\n\n**This constant was deprecated\nin API level 35.** \n\nA `serialVersionUID` field in an interface is\nineffectual. Do not use; no replacement.\n\nThe class fingerprint that is set to indicate\nserialization compatibility.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n-3314988629879632826\n(0xd1fecb679990cc46)\n\n\nPublic methods\n--------------\n\n### getW\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract ECPoint getW ()\n```\n\nReturns the public point W.\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------------------------------------------|----------------------------|\n| [ECPoint](/reference/java/security/spec/ECPoint) | the public point W. \u003cbr /\u003e |"]]