Stay organized with collections
Save and categorize content based on your preferences.
javax.crypto.interfaces
Provides interfaces for Diffie-Hellman keys as defined in
RSA Laboratories' PKCS #3.
Note that these interfaces are intended only
for key implementations whose key material
is accessible and available. These
interfaces are not intended for key
implementations whose key material resides
in inaccessible, protected storage (such as
in a hardware device).
For more developer information on how to use
these interfaces, including information on
how to design Key
classes
for hardware devices, please refer to the
cryptographic provider developer guide:
Package Specification
- PKCS #3: Diffie-Hellman Key-Agreement Standard, Version 1.4,
November 1993.
For further documentation, please see:
Interfaces
DHKey |
The interface to a Diffie-Hellman key.
|
DHPrivateKey |
The interface to a Diffie-Hellman private key.
|
DHPublicKey |
The interface to a Diffie-Hellman public key.
|
PBEKey |
The interface to a PBE key.
|
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,["# javax.crypto.interfaces\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\njavax.crypto.interfaces\n=======================\n\nProvides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.\n\n\nNote that these interfaces are intended only\nfor key implementations whose key material\nis accessible and available. These\ninterfaces are not intended for key\nimplementations whose key material resides\nin inaccessible, protected storage (such as\nin a hardware device).\n\n\nFor more developer information on how to use\nthese interfaces, including information on\nhow to design `Key` classes\nfor hardware devices, please refer to the\ncryptographic provider developer guide:\n\n- [**How to Implement a Provider for the\n Java^TM^ Cryptography Architecture**](//../technotes/guides/security/crypto/HowToImplAProvider.html)\n\nPackage Specification\n---------------------\n\n- PKCS #3: Diffie-Hellman Key-Agreement Standard, Version 1.4, November 1993.\n\nRelated Documentation\n---------------------\n\nFor further documentation, please see:\n\n- [**Java^TM^\n Cryptography Architecture API Specification and Reference**](//../technotes/guides/security/crypto/CryptoSpec.html)\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------|------------------------------------------------|\n| [DHKey](/reference/javax/crypto/interfaces/DHKey) | The interface to a Diffie-Hellman key. |\n| [DHPrivateKey](/reference/javax/crypto/interfaces/DHPrivateKey) | The interface to a Diffie-Hellman private key. |\n| [DHPublicKey](/reference/javax/crypto/interfaces/DHPublicKey) | The interface to a Diffie-Hellman public key. |\n| [PBEKey](/reference/javax/crypto/interfaces/PBEKey) | The interface to a PBE key. |\n\n-\n\n Interfaces\n ----------\n\n - [DHKey](/reference/javax/crypto/interfaces/DHKey)\n - [DHPrivateKey](/reference/javax/crypto/interfaces/DHPrivateKey)\n - [DHPublicKey](/reference/javax/crypto/interfaces/DHPublicKey)\n - [PBEKey](/reference/javax/crypto/interfaces/PBEKey)"]]