Stay organized with collections
Save and categorize content based on your preferences.
DHKey
public
interface
DHKey
javax.crypto.interfaces.DHKey
|
Known indirect subclasses
DHPrivateKey |
The interface to a Diffie-Hellman private key.
|
DHPublicKey |
The interface to a Diffie-Hellman public key.
|
|
The interface to a Diffie-Hellman key.
Summary
Public methods
getParams
public abstract DHParameterSpec getParams ()
Returns the key parameters.
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,["# DHKey\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nDHKey\n=====\n\n\n`\npublic\n\n\ninterface\nDHKey\n`\n\n\n`\n\n\n`\n\n|-------------------------------|\n| javax.crypto.interfaces.DHKey |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [DHPrivateKey](/reference/javax/crypto/interfaces/DHPrivateKey), [DHPublicKey](/reference/javax/crypto/interfaces/DHPublicKey) |-----------------------------------------------------------------|------------------------------------------------| | [DHPrivateKey](/reference/javax/crypto/interfaces/DHPrivateKey) | The interface to a Diffie-Hellman private key. | | [DHPublicKey](/reference/javax/crypto/interfaces/DHPublicKey) | The interface to a Diffie-Hellman public key. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThe interface to a Diffie-Hellman key. \n**See also:**\n\n- [DHParameterSpec](/reference/javax/crypto/spec/DHParameterSpec)\n- [DHPublicKey](/reference/javax/crypto/interfaces/DHPublicKey)\n- [DHPrivateKey](/reference/javax/crypto/interfaces/DHPrivateKey)\n\nSummary\n-------\n\n| ### Public methods ||\n|-----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|\n| ` abstract `[DHParameterSpec](/reference/javax/crypto/spec/DHParameterSpec) | ` `[getParams](/reference/javax/crypto/interfaces/DHKey#getParams())`() ` Returns the key parameters. |\n\nPublic methods\n--------------\n\n### getParams\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract DHParameterSpec getParams ()\n```\n\nReturns the key parameters.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------------------------------------------------------------|---------------------------|\n| [DHParameterSpec](/reference/javax/crypto/spec/DHParameterSpec) | the key parameters \u003cbr /\u003e |"]]