DHKey (Java SE 26 & JDK 26)
Description: declaration: module: java.base, package: javax.crypto.interfaces, interface: DHKey
Keywords: javax.crypto.interfaces.DHKey interface

# Interface DHKey

All Known Subinterfaces:
  `DHPrivateKey, DHPublicKey`

public interface DHKey
The interface to a Diffie-Hellman key.

Since:
  1.4
See Also:
  - `DHParameterSpec`
  - `DHPublicKey`
  - `DHPrivateKey`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DHParameterSpec`
  `getParams()`
  Returns the key parameters.

- ## Method Details

  - ### getParams

    DHParameterSpec getParams()
    Returns the key parameters.
    Returns:
      the key parameters