Class AsymmetricDHKey

java.lang.Object
org.bouncycastle.crypto.asymmetric.AsymmetricDHKey
All Implemented Interfaces:
AsymmetricKey, Key
Direct Known Subclasses:
AsymmetricDHPrivateKey, AsymmetricDHPublicKey

public abstract class AsymmetricDHKey extends Object implements AsymmetricKey
Base class for Diffie-Hellman keys.
  • Method Details

    • getAlgorithm

      public Algorithm getAlgorithm()
      Return the algorithm this Diffie-Hellman key is for.
      Specified by:
      getAlgorithm in interface Key
      Returns:
      the key's algorithm.
    • getDomainParameters

      public DHDomainParameters getDomainParameters()
      Return the Diffie-Hellman domain parameters associated with this key.
      Returns:
      the Diffie-Hellman domain parameters for this key.
    • isThreadCorrectMode

      protected final boolean isThreadCorrectMode()
    • checkApprovedOnlyModeStatus

      protected final void checkApprovedOnlyModeStatus()
    • zeroize

      protected void zeroize()