Interface DHPrivateKey

All Superinterfaces:
DHKey, Key, PrivateKey, Serializable
All Known Implementing Classes:
BCDHPrivateKey, JCEDHPrivateKey

public interface DHPrivateKey
extends DHKey, PrivateKey
The interface for a private key in the Diffie-Hellman key exchange protocol.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static long serialVersionUID
    The serialization version identifier.
  • Method Summary

    Modifier and Type Method Description
    BigInteger getX()
    Returns this key's private value x.

    Methods inherited from interface javax.crypto.interfaces.DHKey

    getParams

    Methods inherited from interface java.security.Key

    getAlgorithm, getEncoded, getFormat
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      The serialization version identifier.
      See Also:
      Constant Field Values
  • Method Details

    • getX

      BigInteger getX()
      Returns this key's private value x.
      Returns:
      this key's private value x.