Stay organized with collections
Save and categorize content based on your preferences.
ECKey
public
interface
ECKey
java.security.interfaces.ECKey
|
Known indirect subclasses
ECPrivateKey |
The interface to an elliptic curve (EC) private key.
|
ECPublicKey |
The interface to an elliptic curve (EC) public key.
|
|
The interface to an elliptic curve (EC) key.
Summary
Public methods
getParams
public abstract ECParameterSpec getParams ()
Returns the domain parameters associated
with this key. The domain parameters are
either explicitly specified or implicitly
created during key generation.
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,["# ECKey\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nECKey\n=====\n\n\n`\npublic\n\n\ninterface\nECKey\n`\n\n\n`\n\n\n`\n\n|--------------------------------|\n| java.security.interfaces.ECKey |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [ECPrivateKey](/reference/java/security/interfaces/ECPrivateKey), [ECPublicKey](/reference/java/security/interfaces/ECPublicKey) |------------------------------------------------------------------|------------------------------------------------------| | [ECPrivateKey](/reference/java/security/interfaces/ECPrivateKey) | The interface to an elliptic curve (EC) private key. | | [ECPublicKey](/reference/java/security/interfaces/ECPublicKey) | The interface to an elliptic curve (EC) public key. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe interface to an elliptic curve (EC) key.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[ECParameterSpec](/reference/java/security/spec/ECParameterSpec) | ` `[getParams](/reference/java/security/interfaces/ECKey#getParams())`() ` Returns the domain parameters associated with this key. |\n\nPublic methods\n--------------\n\n### getParams\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract ECParameterSpec getParams ()\n```\n\nReturns the domain parameters associated\nwith this key. The domain parameters are\neither explicitly specified or implicitly\ncreated during key generation.\n\n\u003cbr /\u003e\n\n| Returns ||\n|------------------------------------------------------------------|------------------------------------------|\n| [ECParameterSpec](/reference/java/security/spec/ECParameterSpec) | the associated domain parameters. \u003cbr /\u003e |"]]