DHKeyParameters (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.crypto.params

## Class DHKeyParameters

- java.lang.Object
- - org.bouncycastle.crypto.params.AsymmetricKeyParameter
  - - org.bouncycastle.crypto.params.DHKeyParameters

- All Implemented Interfaces:
    CipherParameters
  Direct Known Subclasses:
    DHPrivateKeyParameters, DHPublicKeyParameters

      public class DHKeyParameters
      extends AsymmetricKeyParameter

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `DHKeyParameters(boolean isPrivate, DHParameters params)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `DHParameters` | `getParameters()`
    `int` | `hashCode()`

    - ### Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter

      `isPrivate`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DHKeyParameters

          protected DHKeyParameters(boolean isPrivate,
                                    DHParameters params)

  - ### Method Detail

    - #### getParameters

          public DHParameters getParameters()

    - #### equals

          public boolean equals(java.lang.Object obj)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`