ECPrivateKey
Stay organized with collections
Save and categorize content based on your preferences.
The interface to an elliptic curve (EC) private key.
Constant Summary
long |
serialVersionUID |
The class fingerprint that is set to indicate
serialization compatibility. |
Inherited Constant Summary
From interface
java.security.Key
long |
serialVersionUID |
The class fingerprint that is set to indicate
serialization compatibility with a previous
version of the class. |
Public Method Summary
abstract
BigInteger
|
getS()
Returns the private value S.
|
Inherited Method Summary
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
public
static
final
long
serialVersionUID
The class fingerprint that is set to indicate
serialization compatibility.
Constant Value:
-7896394956925609184
Public Methods
public
abstract
BigInteger
getS
()
Returns the private value S.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-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 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eECPrivateKey\u003c/code\u003e represents an elliptic curve private key in Java security.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the private value (S) and the associated domain parameters.\u003c/p\u003e\n"],["\u003cp\u003eThis interface inherits functionality from \u003ccode\u003ePrivateKey\u003c/code\u003e, \u003ccode\u003eECKey\u003c/code\u003e, and other related interfaces.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eECPrivateKey\u003c/code\u003e supports encoding and serialization for persistence and interoperability.\u003c/p\u003e\n"],["\u003cp\u003eThe interface includes methods for retrieving key attributes like algorithm, format, and encoded representation.\u003c/p\u003e\n"]]],[],null,["public interface **ECPrivateKey** implements [PrivateKey](../../../../reference/java/security/PrivateKey.html) [ECKey](../../../../reference/java/security/interfaces/ECKey.html) \nThe interface to an elliptic curve (EC) private key. \n\nSee Also\n\n- [PrivateKey](../../../../reference/java/security/PrivateKey.html)\n- [ECKey](../../../../reference/java/security/interfaces/ECKey.html) \n\nConstant Summary\n\n|------|-------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/interfaces/ECPrivateKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility. |\n\nInherited Constant Summary \nFrom interface [java.security.PrivateKey](../../../../reference/java/security/PrivateKey.html) \n\n|------|------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/PrivateKey.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |\n\nFrom interface [java.security.Key](../../../../reference/java/security/Key.html) \n\n|------|-----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| long | [serialVersionUID](../../../../reference/java/security/Key.html#serialVersionUID) | The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |\n\nPublic Method Summary\n\n|---------------------|----------------------------------------------------------------------------------------------------------------|\n| abstract BigInteger | [getS](../../../../reference/java/security/interfaces/ECPrivateKey.html#getS())() Returns the private value S. |\n\nInherited Method Summary \nFrom interface [java.security.interfaces.ECKey](../../../../reference/java/security/interfaces/ECKey.html) \n\n|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [ECParameterSpec](../../../../reference/java/security/spec/ECParameterSpec.html) | [getParams](../../../../reference/java/security/interfaces/ECKey.html#getParams())() Returns the domain parameters associated with this key. |\n\nFrom interface [java.security.Key](../../../../reference/java/security/Key.html) \n\n|----------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [String](../../../../reference/java/lang/String.html) | [getAlgorithm](../../../../reference/java/security/Key.html#getAlgorithm())() Returns the standard algorithm name for this key. |\n| abstract byte\\[\\] | [getEncoded](../../../../reference/java/security/Key.html#getEncoded())() Returns the key in its primary encoding format, or null if this key does not support encoding. |\n| abstract [String](../../../../reference/java/lang/String.html) | [getFormat](../../../../reference/java/security/Key.html#getFormat())() Returns the name of the primary encoding format of this key, or null if this key does not support encoding. |\n\nFrom interface [javax.security.auth.Destroyable](../../../../reference/javax/security/auth/Destroyable.html) \n\n|---------|------------------------------------------------------------------------------------------------------------------------------------------|\n| void | [destroy](../../../../reference/javax/security/auth/Destroyable.html#destroy())() Destroy this `Object`. |\n| boolean | [isDestroyed](../../../../reference/javax/security/auth/Destroyable.html#isDestroyed())() Determine if this `Object` has been destroyed. |\n\nConstants \n\npublic static final long\n**serialVersionUID** \nThe class fingerprint that is set to indicate\nserialization compatibility. \nConstant Value: -7896394956925609184\n\nPublic Methods \n\npublic abstract BigInteger\n**getS**\n() \nReturns the private value S. \n\nReturns\n\n- the private value S."]]