net.i2p.crypto.elgamal

## Interface ElGamalPrivateKey

- All Superinterfaces:
    Destroyable, DHKey, DHPrivateKey, ElGamalKey, Key, PrivateKey, Serializable
  All Known Implementing Classes:
    ElGamalPrivateKeyImpl

      public interface ElGamalPrivateKey
      extends ElGamalKey, DHPrivateKey

  Interface for ElGamal private keys. This interface defines the contract for ElGamal private keys, extending both the ElGamalKey interface and the standard DHPrivateKey interface. ElGamal private keys contain the secret exponent x used for decryption operations in the ElGamal public-key cryptosystem.

- - ### Field Summary

    - ### Fields inherited from interface javax.crypto.interfaces.DHPrivateKey

      `serialVersionUID`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `BigInteger` | `getX()`

    - ### Methods inherited from interface net.i2p.crypto.elgamal.ElGamalKey

      `getParameters`

    - ### Methods inherited from interface javax.crypto.interfaces.DHKey

      `getParams`

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

      `getAlgorithm, getEncoded, getFormat`

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

      `destroy, isDestroyed`

- - ### Method Detail

    - #### getX

          BigInteger getX()

      Specified by:
        `getX` in interface `DHPrivateKey`