Stay organized with collections
Save and categorize content based on your preferences.
ECPrivateKey
public
interface
ECPrivateKey
implements
ECKey,
PrivateKey
java.security.interfaces.ECPrivateKey
|
The interface to an elliptic curve (EC) private 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.PrivateKey
long |
serialVersionUID
This constant was deprecated
in API level 34.
A serialVersionUID field in an interface is
ineffectual. Do not use; no replacement.
|
|
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
BigInteger
|
getS()
Returns the private value S.
|
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:
-7896394956925609184
(0x926a5e9fa2435b20)
Public methods
getS
public abstract BigInteger getS ()
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# ECPrivateKey\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\nECPrivateKey\n============\n\n\n`\npublic\n\n\ninterface\nECPrivateKey\n`\n\n\n`\n\n\nimplements\n\n`[ECKey](/reference/java/security/interfaces/ECKey)`,\n\n`[PrivateKey](/reference/java/security/PrivateKey)`\n\n\n`\n\n|---------------------------------------|\n| java.security.interfaces.ECPrivateKey |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe interface to an elliptic curve (EC) private key. \n**See also:**\n\n- [PrivateKey](/reference/java/security/PrivateKey)\n- [ECKey](/reference/java/security/interfaces/ECKey)\n\nSummary\n-------\n\n| ### Constants ||\n|--------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `long` | [serialVersionUID](/reference/java/security/interfaces/ECPrivateKey#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.PrivateKey](/reference/java/security/PrivateKey) |--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `long` | [serialVersionUID](/reference/java/security/PrivateKey#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 `[BigInteger](/reference/java/math/BigInteger) | ` `[getS](/reference/java/security/interfaces/ECPrivateKey#getS())`() ` Returns the private value S. |\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 ` `[javax.security.auth.Destroyable](/reference/javax/security/auth/Destroyable)` ` |--------------------|--------------------------------------------------------------------------------------------------------------------------------| | ` default void` | ` `[destroy](/reference/javax/security/auth/Destroyable#destroy())`() ` Destroy this `Object`. | | ` default boolean` | ` `[isDestroyed](/reference/javax/security/auth/Destroyable#isDestroyed())`() ` Determine if this `Object` has been destroyed. | ||\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-7896394956925609184\n(0x926a5e9fa2435b20)\n\n\nPublic methods\n--------------\n\n### getS\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract BigInteger getS ()\n```\n\nReturns the private value S.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------------------------------------------|-----------------------------|\n| [BigInteger](/reference/java/math/BigInteger) | the private value S. \u003cbr /\u003e |"]]