java.lang.Object
net.i2p.crypto.elgamal.spec.ElGamalKeySpec
net.i2p.crypto.elgamal.spec.ElGamalPrivateKeySpec
All Implemented Interfaces:
KeySpec

public class ElGamalPrivateKeySpecextends ElGamalKeySpec
This class specifies an ElGamal private key with its associated parameters.
See Also:
  • Field Details

    • x

      private final BigInteger x
      The private exponent.
  • Constructor Details

    • ElGamalPrivateKeySpec

      public ElGamalPrivateKeySpec(BigInteger x, ElGamalParameterSpec spec)
      ElGamal private key specification.
      Parameters:
      x - The private key value.
      spec - The ElGamal parameter specification.
  • Method Details

    • getX

      public BigInteger getX()
      Returns the private value x.
      Returns:
      the private value x