ElGamalPrivateKeySpec (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.jce.spec

## Class ElGamalPrivateKeySpec

- java.lang.Object
- - org.bouncycastle.jce.spec.ElGamalKeySpec
  - - org.bouncycastle.jce.spec.ElGamalPrivateKeySpec

- All Implemented Interfaces:
    java.security.spec.KeySpec

      public class ElGamalPrivateKeySpec
      extends ElGamalKeySpec

  This class specifies an ElGamal private key with its associated parameters.
  See Also:
    `ElGamalPublicKeySpec`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ElGamalPrivateKeySpec(java.math.BigInteger x, ElGamalParameterSpec spec)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.math.BigInteger` | `getX()` Returns the private value `x`.

    - ### Methods inherited from class org.bouncycastle.jce.spec.ElGamalKeySpec

      `getParams`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ElGamalPrivateKeySpec

          public ElGamalPrivateKeySpec(java.math.BigInteger x,
                               ElGamalParameterSpec spec)

  - ### Method Detail

    - #### getX

          public java.math.BigInteger getX()

      Returns the private value `x`.
      Returns:
        the private value `x`