net.i2p.crypto.elgamal

## Interface ElGamalPublicKey

- All Superinterfaces:
    DHKey, DHPublicKey, ElGamalKey, Key, PublicKey, Serializable
  All Known Implementing Classes:
    ElGamalPublicKeyImpl

      public interface ElGamalPublicKey
      extends ElGamalKey, DHPublicKey

  Interface for ElGamal public keys. This interface defines the contract for ElGamal public keys, extending both the ElGamalKey interface and the standard DHPublicKey interface. ElGamal public keys contain the public value y = g^x mod p used for encryption operations in the ElGamal public-key cryptosystem.

- - ### Field Summary

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

      `serialVersionUID`

  - ### Method Summary

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

    - ### 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`

- - ### Method Detail

    - #### getY

          BigInteger getY()

      Specified by:
        `getY` in interface `DHPublicKey`