DHKey

  • DHKey is the interface for Diffie-Hellman keys, encompassing both public and private key functionalities.

  • It provides access to the key parameters through the getParams() method, returning a DHParameterSpec object.

  • DHPrivateKey and DHPublicKey are known subclasses, representing the private and public key components respectively.

public interface DHKey
Known Indirect Subclasses

The interface to a Diffie-Hellman key.

Public Method Summary

abstract DHParameterSpec
getParams()
Returns the key parameters.

Public Methods

public abstract DHParameterSpec getParams ()

Returns the key parameters.

Returns
  • the key parameters