Package org.bouncycastle.jcajce.interfaces

## Interface XDHPrivateKey

- All Superinterfaces:
    `javax.security.auth.Destroyable`, `java.security.Key`, `java.security.PrivateKey`, `java.io.Serializable`, `XDHKey`
  All Known Implementing Classes:
    `BCXDHPrivateKey`

      public interface XDHPrivateKey
      extends XDHKey, java.security.PrivateKey

- - ### Field Summary

    - ### Fields inherited from interface java.security.Key

      `serialVersionUID`

    - ### Fields inherited from interface java.security.PrivateKey

      `serialVersionUID`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `XDHPublicKey` | `getPublicKey()` | Return the public key associated with this private key.

    - ### Methods inherited from interface javax.security.auth.Destroyable

      `destroy, isDestroyed`

    - ### Methods inherited from interface java.security.Key

      `getAlgorithm, getEncoded, getFormat`

- - ### Method Detail

    - #### getPublicKey

          XDHPublicKey getPublicKey()

      Return the public key associated with this private key.
      Returns:
        an XDHPublicKey